Skip to content

Commit

Permalink
MORE_PIP_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Jun 9, 2021
1 parent c0048dd commit 32e864f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions mpcontribs-portal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ FROM base as python-deps
RUN apt-get update && apt-get install -y --no-install-recommends gcc git g++ wget && apt-get clean
ENV PATH /root/.local/bin:$PATH
ENV PIP_FLAGS "--user --no-cache-dir --compile"
ARG MORE_PIP_FLAGS
ENV MORE_PIP_FLAGS=$MORE_PIP_FLAGS
COPY requirements.txt .
RUN pip install $PIP_FLAGS -r requirements.txt && \
RUN pip install $PIP_FLAGS $MORE_PIP_FLAGS -r requirements.txt && \
python -m ipykernel install --user
RUN wget -q https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh && \
chmod +x wait-for-it.sh && mv wait-for-it.sh /root/.local/bin/
Expand All @@ -39,9 +41,11 @@ COPY --from=webpack /app/dist dist
ENV NODE_ENV production
ENV PATH /root/.local/bin:$PATH
ENV PIP_FLAGS "--user --no-cache-dir --compile"
ARG MORE_PIP_FLAGS
ENV MORE_PIP_FLAGS=$MORE_PIP_FLAGS
ENV DJANGO_SETTINGS_FILE="settings.py"
COPY . .
RUN pip install $PIP_FLAGS .
RUN pip install $PIP_FLAGS $MORE_PIP_FLAGS .
RUN python manage.py collectstatic --noinput
COPY notebooks notebooks
RUN ./notebooks/convert.sh ./notebooks ./mpcontribs/portal/templates/notebooks/
Expand Down
4 changes: 3 additions & 1 deletion mpcontribs-sidecars/kernel_gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ FROM base as python-deps
RUN apt-get update && apt-get install -y --no-install-recommends gcc git g++ wget && apt-get clean
ENV PATH /root/.local/bin:$PATH
ENV PIP_FLAGS "--user --no-cache-dir --compile"
ARG MORE_PIP_FLAGS
ENV MORE_PIP_FLAGS=$MORE_PIP_FLAGS
COPY requirements.txt .
RUN pip install $PIP_FLAGS -r requirements.txt && \
RUN pip install $PIP_FLAGS $MORE_PIP_FLAGS -r requirements.txt && \
python -m ipykernel install --user
RUN wget -q https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh && \
chmod +x wait-for-it.sh && mv wait-for-it.sh /root/.local/bin/
Expand Down

0 comments on commit 32e864f

Please sign in to comment.