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

swh-web: Unify entrypoint copy and format

It's copied at the end of the Dockerfile so modification to it do not rebuild
deps. The entrypoint script is also adapted to work with actual docker run
parent 787f5462
No related branches found
Tags swh-graphql-20240111.1
No related merge requests found
......@@ -14,16 +14,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 5004
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