mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Bugfixes and Docker dev test script
This commit is contained in:
33
Dockerfile-dev
Normal file
33
Dockerfile-dev
Normal file
@@ -0,0 +1,33 @@
|
||||
FROM python:3-alpine
|
||||
|
||||
# Based on the work of Jonathan Boeckel <jonathanboeckel1996@gmail.com>
|
||||
# https://gitlab.com/Joniator/docker-maloja
|
||||
# https://github.com/Joniator
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
|
||||
# Copy project into dir
|
||||
COPY ./install ./install
|
||||
COPY ./requirements.txt ./requirements.txt
|
||||
|
||||
|
||||
# Build dependencies (This will pipe all packages from the file)
|
||||
RUN sed 's/#.*//' ./install/dependencies_build.txt | xargs apk add --no-cache --virtual .build-deps
|
||||
# Runtime dependencies (Same)
|
||||
RUN sed 's/#.*//' ./install/dependencies_run.txt | xargs apk add --no-cache
|
||||
# Python dependencies
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
# Local project install
|
||||
COPY . .
|
||||
RUN pip3 install /usr/src/app
|
||||
# Remove build dependencies
|
||||
RUN apk del .build-deps
|
||||
|
||||
# expected behavior for a default setup is for maloja to "just work"
|
||||
ENV MALOJA_SKIP_SETUP=yes
|
||||
ENV MALOJA_HOST=0.0.0.0
|
||||
|
||||
EXPOSE 42010
|
||||
# use exec form for better signal handling https://docs.docker.com/engine/reference/builder/#entrypoint
|
||||
ENTRYPOINT ["maloja", "run"]
|
||||
Reference in New Issue
Block a user