Sfoglia il codice sorgente

Use slim alpine instead of bulky debian

Signed-off-by: French Ben <[email protected]>
French Ben 8 anni fa
parent
commit
cb2d65556b
1 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  1. 11 2
      Dockerfile.s390x

+ 11 - 2
Dockerfile.s390x

@@ -1,6 +1,15 @@
-FROM s390x/python:3.6.2-slim
+FROM s390x/alpine:3.6
+
 ARG COMPOSE_VERSION=1.16.1
 
-RUN pip install --no-cache-dir docker-compose==$COMPOSE_VERSION
+RUN apk add --update --no-cache \
+    python \
+    py-pip \
+  && pip install --no-cache-dir docker-compose==$COMPOSE_VERSION \
+  && rm -rf /var/cache/apk/*
+
+WORKDIR /data
+VOLUME /data
+
 
 ENTRYPOINT ["docker-compose"]