1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

RPi: fix alpine version for setup, only one layer for pip install

This commit is contained in:
Aurélien Bondis 2019-10-09 12:09:18 -04:00
parent 2c95ed98a4
commit 98307f868a

View File

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