Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Daily Thought App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
COM3014-Coursework
Daily Thought App
Commits
aa4ff9c9
Commit
aa4ff9c9
authored
2 years ago
by
Felipe D'Abrantes
Browse files
Options
Downloads
Patches
Plain Diff
Use node:latest for the frontend service docker
parent
5134d9b0
No related branches found
Branches containing commit
No related tags found
1 merge request
!24
Fe questions and posts (This one is big)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daily-thought-frontend/Dockerfile
+2
-1
2 additions, 1 deletion
daily-thought-frontend/Dockerfile
with
2 additions
and
1 deletion
daily-thought-frontend/Dockerfile
+
2
−
1
View file @
aa4ff9c9
# base image
# base image
FROM
node:
alpine
FROM
node:
latest
# create & set working directory
# create & set working directory
RUN
mkdir
-p
/frontend-service/app
RUN
mkdir
-p
/frontend-service/app
...
@@ -9,6 +9,7 @@ WORKDIR /frontend-service/app
...
@@ -9,6 +9,7 @@ WORKDIR /frontend-service/app
COPY
. /frontend-service/app
COPY
. /frontend-service/app
# start app
# start app
RUN
npm
install
RUN
npm run build
RUN
npm run build
EXPOSE
9000
EXPOSE
9000
CMD
npm run dev
CMD
npm run dev
\ No newline at end of file
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