Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
0a59ff4a
Commit
0a59ff4a
authored
Sep 23, 2021
by
carlosribas
Browse files
Run as root
parent
c75313fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Dockerfile
Dockerfile
+3
-3
No files found.
Dockerfile
View file @
0a59ff4a
...
...
@@ -45,7 +45,7 @@ RUN \
apt-get
install
-y
nodejs
# Create the rnacentral user
RUN
useradd
-m
-d
/srv/rnacentral
-s
/bin/bash rnacentral
#
RUN useradd -m -d /srv/rnacentral -s /bin/bash rnacentral
# Set work directory
ENV
RNACENTRAL_HOME=/srv/rnacentral/rnacentral-webcode
...
...
@@ -78,7 +78,7 @@ RUN \
# Copy and chown all the files to the rnacentral user
COPY
rnacentral $RNACENTRAL_HOME/rnacentral
RUN
chown
-R
rnacentral:rnacentral /srv
#
RUN chown -R rnacentral:rnacentral /srv
# Install and configure packages for local development if needed
RUN
\
...
...
@@ -92,7 +92,7 @@ RUN \
fi
# Set user
USER
rnacentral
#
USER rnacentral
# Run entrypoint
COPY
./entrypoint.sh $RNACENTRAL_HOME
...
...
Write
Preview
Markdown
is supported
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