Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fachschaft
Portal
Commits
efd8a26f
Verified
Commit
efd8a26f
authored
5 months ago
by
Sören Ducati
Browse files
Options
Downloads
Patches
Plain Diff
fix: switch over to python user to drop permissions
parent
166bf4fa
No related branches found
Branches containing commit
No related tags found
1 merge request
!26
Drop root privileges in container
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+2
-0
2 additions, 0 deletions
Dockerfile
with
2 additions
and
0 deletions
Dockerfile
+
2
−
0
View file @
efd8a26f
...
...
@@ -6,6 +6,8 @@ EXPOSE 5000
# First, copy and install only the requirements...
RUN
useradd
-ms
/bin/bash python
&&
chown
-R
python:python /app
USER
python
ENV
PATH="$PATH:/home/python/.local/bin"
RUN
pip
install
--upgrade
pip setuptools
RUN
pip
install
pipenv
COPY
Pipfile.lock .
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment