Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
cxcy-scoresheet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MathWeb
cxcy-scoresheet
Commits
b6616942
Commit
b6616942
authored
May 13, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
non-root user
parent
5416c0c9
Pipeline
#3252
failed with stages
in 28 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
Dockerfile
Dockerfile
+9
-4
No files found.
Dockerfile
View file @
b6616942
...
@@ -8,12 +8,17 @@ RUN apt-get update \
...
@@ -8,12 +8,17 @@ RUN apt-get update \
&&
apt-get update
\
&&
apt-get update
\
&&
apt-get
install
-y
python3 build-essential google-chrome-stable fonts-ipafont-gothic fonts-wqy-microhei fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1
\
&&
apt-get
install
-y
python3 build-essential google-chrome-stable fonts-ipafont-gothic fonts-wqy-microhei fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1
\
--no-install-recommends
\
--no-install-recommends
\
&&
rm
-rf
/tmp/
*
/var/tmp/
*
/var/lib/apt/lists/
*
&&
rm
-rf
/tmp/
*
/var/tmp/
*
/var/lib/apt/lists/
*
\
&&
groupadd
-r
mathweb
&&
useradd
-r
-g
mathweb
-G
audio,video mathweb
\
&&
mkdir
-p
/home/mathweb/Downloads
\
&&
chown
-R
mathweb:mathweb /home/mathweb
WORKDIR
/usr/src/app
USER
mathweb
COPY
./package*.json ./
WORKDIR
/home/mathweb/app
COPY
--chown=mathweb:mathweb ./package*.json ./
RUN
npm ci
RUN
npm ci
COPY
. ./
COPY
--chown=mathweb:mathweb
. ./
RUN
npm run build
RUN
npm run build
CMD
["npm", "run", "start:prod"]
CMD
["npm", "run", "start:prod"]
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