Switched to node builder and updated to Alpine 3.12
This commit is contained in:
+7
-8
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user