install python for setup image, accept args for build_arm script

master
Aurélien Bondis 6 years ago
parent a053f90875
commit 3a10865824

@ -1,11 +1,12 @@
FROM python:3-alpine
ARG DISTRO=alpine:3.8
FROM $DISTRO
RUN mkdir -p /app
WORKDIR /app
COPY requirements.txt requirements.txt
RUN apk add --no-cache curl \
&& pip install -r requirements.txt
RUN apk add --no-cache curl python3 py3-pip
RUN pip3 install -r requirements.txt
COPY server.py ./server.py
COPY main.py ./main.py

@ -6,4 +6,4 @@ QEMU="$(which qemu-arm-static)"
cp $QEMU ../webmails/rainloop/
cp $QEMU ../webmails/roundcube/
docker-compose -f build.yml build --build-arg DISTRO=$DISTRO --build-arg PHP_DISTRO=$PHP # --parallel
docker-compose -f build.yml build --build-arg DISTRO=$DISTRO --build-arg PHP_DISTRO=$PHP $@ # --parallel

Loading…
Cancel
Save