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

Made Dockerfile installations one layer again

This commit is contained in:
krateng 2021-12-23 08:20:31 +01:00
parent 8661d9f7e4
commit 0f40ebbad9
2 changed files with 22 additions and 26 deletions

View File

@ -10,19 +10,17 @@ WORKDIR /usr/src/app
# Copy project into dir
COPY . .
# 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 /usr/src/app
RUN apk del .build-deps
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

View File

@ -10,19 +10,17 @@ 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
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 && \
# PyPI install
pip3 install malojaserver==$MALOJA_RELEASE && \
# Remove build dependencies
apk del .build-deps
# expected behavior for a default setup is for maloja to "just work"
ENV MALOJA_SKIP_SETUP=yes