forked from kompetenzinventar/ki-backend
add docker publish
This commit is contained in:
17
Dockerfile
17
Dockerfile
@ -1,17 +1,4 @@
|
||||
FROM python:3.8-alpine as base
|
||||
|
||||
ENV PYROOT /pyroot
|
||||
ENV PYTHONUSERBASE $PYROOT
|
||||
|
||||
|
||||
FROM base as builder
|
||||
|
||||
RUN apk add --no-cache \
|
||||
gcc \
|
||||
g++ \
|
||||
musl-dev \
|
||||
python3-dev && \
|
||||
pip3 install pipenv
|
||||
FROM registry.wtf-eg.net/ki-backend-builder:1.0.0 as builder
|
||||
|
||||
COPY Pipfile* ./
|
||||
|
||||
@ -19,7 +6,7 @@ RUN PIP_USER=1 PIP_IGNORE_INSTALLED=1 pipenv install --system --deploy --ignore-
|
||||
RUN pip3 uninstall --yes pipenv
|
||||
|
||||
|
||||
FROM base
|
||||
FROM registry.wtf-eg.net/ki-backend-base:1.0.0 as ki-backend
|
||||
|
||||
# Install six explicitly. Otherwise Python complains about it missing.
|
||||
RUN pip3 install six
|
||||
|
Reference in New Issue
Block a user