Sfoglia il codice sorgente

try to use alpine to reduce image size

pull/342/head
Guillaume Vincent 8 anni fa
parent
commit
50fb81eae8
2 ha cambiato i file con 3 aggiunte e 6 eliminazioni
  1. +2
    -5
      Dockerfile
  2. +1
    -1
      entrypoint.sh

+ 2
- 5
Dockerfile Vedi File

@@ -1,9 +1,6 @@
FROM python:3.5
FROM python:3.5-alpine

RUN apt-get update && apt-get install -y \
supervisor \
netcat \
&& rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache supervisor netcat-openbsd postgresql-dev gcc python3-dev musl-dev

RUN mkdir /backend
WORKDIR /backend


+ 1
- 1
entrypoint.sh Vedi File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

while ! nc -z db 5432; do sleep 3; done



Caricamento…
Annulla
Salva