Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ESSIF-Lab
eSSIF-Lab framework
Commits
1907afd3
Commit
1907afd3
authored
Oct 12, 2020
by
Thanasis Katsadas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Dockerfile production grade
parent
3e72a42d
Pipeline
#15730
passed with stages
in 4 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
Dockerfile
Dockerfile
+3
-8
No files found.
Dockerfile
View file @
1907afd3
FROM
node:lts
FROM
node:lts
AS builder-ui
RUN
mkdir
/srv/code
...
...
@@ -6,15 +6,10 @@ COPY . /srv/code
WORKDIR
/srv/code
RUN
yarn global add serve
RUN
yarn
install
RUN
yarn parse
RUN
yarn glossary
RUN
yarn build
WORKDIR
/srv/code/build
CMD
serve
EXPOSE
5000
FROM
nginx:1.17.5
COPY
--from=builder-ui /srv/code/build /usr/share/nginx/html
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