Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PADME Station Software
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PADME-PHT Development
PADME Station Software
Commits
36274d3f
Commit
36274d3f
authored
1 year ago
by
Muhammad Hamza Akhtar
Browse files
Options
Downloads
Patches
Plain Diff
chore(docker): remove directives for existing user
parent
3a433be2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+1
-5
1 addition, 5 deletions
Dockerfile
with
1 addition
and
5 deletions
Dockerfile
+
1
−
5
View file @
36274d3f
...
...
@@ -22,12 +22,8 @@ FROM node:18.18.2-bullseye-slim
ENV
NODE_ENV production
COPY
--from=build /usr/bin/dumb-init /usr/bin/dumb-init
# Create a system group named "node" with the -r flag
# Create a system user named "node" and add it to the "node" group with the -r and -g flags
# Create a directory for the lockfile and change the ownership of the directory to the "node" user and group
RUN
groupadd
-r
node
\
&&
useradd
-r
-g
node node
\
&&
mkdir
/lockfiledir
\
RUN
mkdir
/lockfiledir
\
&&
chown
-R
node:node /lockfiledir
WORKDIR
/usr/src/app
...
...
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