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:
parent
8661d9f7e4
commit
0f40ebbad9
16
Dockerfile
16
Dockerfile
@ -10,19 +10,17 @@ WORKDIR /usr/src/app
|
||||
# Copy project into dir
|
||||
COPY . .
|
||||
|
||||
RUN \
|
||||
# Build dependencies
|
||||
RUN sh ./install/alpine_requirements_build_volatile.sh
|
||||
|
||||
sh ./install/alpine_requirements_build_volatile.sh && \
|
||||
# Runtime dependencies
|
||||
RUN sh ./install/alpine_requirements_run.sh
|
||||
|
||||
sh ./install/alpine_requirements_run.sh && \
|
||||
# Python dependencies
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
|
||||
pip3 install --no-cache-dir -r requirements.txt && \
|
||||
# Local project install
|
||||
RUN pip3 install /usr/src/app
|
||||
|
||||
RUN apk del .build-deps
|
||||
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
|
||||
|
@ -10,19 +10,17 @@ WORKDIR /usr/src/app
|
||||
|
||||
|
||||
|
||||
RUN \
|
||||
# Build dependencies
|
||||
RUN sh ./install/alpine_requirements_build_volatile.sh
|
||||
|
||||
sh ./install/alpine_requirements_build_volatile.sh && \
|
||||
# Runtime dependencies
|
||||
RUN sh ./install/alpine_requirements_run.sh
|
||||
|
||||
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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user