Commit ddfc16eb authored by Luc Yriarte's avatar Luc Yriarte
Browse files

Merge branch 'drop_3_dockerfile' into GONRG-1875

parents bbb87411 5d9470bf
Pipeline #27384 failed with stages
in 14 minutes and 52 seconds
......@@ -14,7 +14,6 @@
FROM python:3.7-slim-buster
RUN apt-get update && apt-get install -y git
COPY requirements.txt requirements_dev.txt ./
RUN pip install -r requirements.txt
......@@ -32,12 +31,14 @@ ARG commit_branch
ENV OS_WELLBORE_DDMS_BUILD_DETAILS build_date=$build_date;build_number=$build_number;build_origin=$build_origin;commit_id=$commit_id;commit_branch=$commit_branch
EXPOSE 8097
EXPOSE 8080
WORKDIR ./
# Make the container run as non-root user
#(https://medium.com/better-programming/running-a-container-with-a-non-root-user-e35830d1f42a)
RUN addgroup --system appuser && adduser --system appuser && adduser appuser appuser
USER appuser
CMD ["uvicorn", "app.wdms_app:base_app", "--host", "0.0.0.0", "--port", "8097"]
CMD ["uvicorn", "app.wdms_app:base_app", "--host", "0.0.0.0", "--port", "8080"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment