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

31 lines
838 B
Docker
Raw Normal View History

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