1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed PyPI-based dockerfile

This commit is contained in:
krateng 2021-12-23 08:24:12 +01:00
parent 0f40ebbad9
commit 9f4041de78

View File

@ -7,18 +7,18 @@ FROM python:3-alpine
ARG MALOJA_RELEASE ARG MALOJA_RELEASE
WORKDIR /usr/src/app WORKDIR /usr/src/app
# Copy needed information
COPY ./install ./install
RUN \ RUN \
# Build dependencies # Build dependencies
sh ./install/alpine_requirements_build_volatile.sh && \ sh ./install/alpine_requirements_build_volatile.sh && \
# Runtime dependencies # Runtime dependencies
sh ./install/alpine_requirements_run.sh && \ sh ./install/alpine_requirements_run.sh && \
# Python dependencies
pip3 install --no-cache-dir -r requirements.txt && \
# PyPI install # PyPI install
pip3 install malojaserver==$MALOJA_RELEASE && \ pip3 install malojaserver==$MALOJA_RELEASE && \
# Remove build dependencies # Remove build dependencies
apk del .build-deps apk del .build-deps