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

master
Aurélien Bondis 5 years ago
parent 2c95ed98a4
commit 98307f868a

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

Loading…
Cancel
Save