Skip to content
Snippets Groups Projects
Verified Commit 24481311 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Change instruction order so entrypoint modif is time effective

In terms of docker build for swh-scheduler app.

Refs. sysadm-environment#5035
parent 4ab5c4f1
No related branches found
Tags swh-loader-highpriority-20220926.1
No related merge requests found
......@@ -13,16 +13,17 @@ USER swh
WORKDIR /opt/swh
COPY --chown=swh:swh requirements-frozen.txt /opt/swh
COPY --chown=swh:swh entrypoint.sh /opt/swh
ENV PYTHONPATH=/opt/swh
ENV PATH=/opt/swh/.local/bin:$PATH
RUN chmod u+x /opt/swh/entrypoint.sh && \
/usr/local/bin/python -m pip install --upgrade pip && \
RUN /usr/local/bin/python -m pip install --upgrade pip && \
pip install --no-cache-dir -r requirements-frozen.txt && \
pip install gunicorn
COPY --chown=swh:swh entrypoint.sh /opt/swh
RUN chmod u+x /opt/swh/entrypoint.sh
ENV SWH_CONFIG_FILENAME=/etc/swh/config.yml
ENV PORT 5008
EXPOSE $PORT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment