Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
b413b38c
Commit
b413b38c
authored
4 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile fix user and dirs permissions
parent
b863ad93
No related branches found
No related tags found
No related merge requests found
Pipeline
#421
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+5
-2
5 additions, 2 deletions
Dockerfile
with
5 additions
and
2 deletions
Dockerfile
+
5
−
2
View file @
b413b38c
...
@@ -8,8 +8,11 @@ RUN pip install -r requirements/base.txt -r requirements/production.txt
...
@@ -8,8 +8,11 @@ RUN pip install -r requirements/base.txt -r requirements/production.txt
COPY
. .
COPY
. .
RUN
useradd app
RUN
bash
-c
'adduser --disabled-login --quiet --gecos app app &&
\
RUN
chown
-R
app /app
chmod -R o+r /app/ &&
\
mkdir /app/media_files &&
\
chown -R app:app /app/media_files &&
\
chmod o+x /app/run.sh'
USER
app
USER
app
# TODO HACK!
# TODO HACK!
...
...
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