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

33 lines
772 B
Plaintext

FROM python:3-alpine
# Based on the work of Jonathan Boeckel <jonathanboeckel1996@gmail.com>
# https://gitlab.com/Joniator/docker-maloja
# https://github.com/Joniator
ARG MALOJA_RELEASE
WORKDIR /usr/src/app
# Build dependencies
RUN sh ./install/alpine_requirements_build_volatile.sh
# Runtime dependencies
RUN sh ./install/alpine_requirements_run.sh
# Python dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
# Local project install
RUN pip3 install malojaserver==$MALOJA_RELEASE
RUN apk del .build-deps
# expected behavior for a default setup is for maloja to "just work"
ENV MALOJA_SKIP_SETUP=yes
EXPOSE 42010
# use exec form for better signal handling https://docs.docker.com/engine/reference/builder/#entrypoint
ENTRYPOINT ["maloja", "run"]