Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Wellbore Domain Services
Commits
ddfc16eb
Commit
ddfc16eb
authored
Feb 19, 2021
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
build/Dockerfile
View file @
ddfc16eb
...
...
@@ -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
80
97
EXPOSE
80
80
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", "80
97
"]
CMD
["uvicorn", "app.wdms_app:base_app", "--host", "0.0.0.0", "--port", "80
80
"]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment