Switched to node builder and updated to Alpine 3.12

This commit is contained in:
Jonathan Ervine
2020-07-21 19:40:12 +08:00
parent 980c01bc9b
commit 13a925fcfb
2 changed files with 39 additions and 23 deletions
+7 -8
View File
@@ -1,5 +1,5 @@
# Base on latest (edge) alpine image
FROM harbor.ervine.dev/library/x86_64/alpine/alpine-3.11
FROM harbor.ervine.dev/library/x86_64/alpine/alpine-3.12
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
@@ -10,13 +10,12 @@ ENV LANG='en_US.UTF-8' \
ADD requirements.txt /tmp/requirements.txt
RUN apk update
RUN apk -U upgrade
RUN apk -U add python3 gcc python3-dev musl-dev libffi-dev
RUN adduser -D python
RUN pip3 install -r /tmp/requirements.txt
RUN rm -rf /tmp/src && rm -rf /var/cache/apk/* && rm -f /tmp/requirements.txt
RUN apk update && \
apk -U upgrade --ignore alpine-baselayout && \
apk -U add python3 gcc python3-dev musl-dev libffi-dev && \
adduser -D python && \
pip3 install -r /tmp/requirements.txt && \
rm -rf /tmp/src && rm -rf /var/cache/apk/* && rm -f /tmp/requirements.txt
EXPOSE 3000