Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
todo-application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
devops-project
todo-application
Commits
5c566648
Commit
5c566648
authored
4 years ago
by
derrabauke
Browse files
Options
Downloads
Patches
Plain Diff
add docker file for the server
parent
cfa6c0ca
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
app/client/Dockerfile
+1
-1
1 addition, 1 deletion
app/client/Dockerfile
app/client/chart/client/values.yaml
+1
-1
1 addition, 1 deletion
app/client/chart/client/values.yaml
app/server/Dockerfile
+15
-0
15 additions, 0 deletions
app/server/Dockerfile
with
18 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
1
View file @
5c566648
...
...
@@ -45,6 +45,6 @@ build_client:
-
docker:19.03.12-dind
stage
:
build
script
:
-
docker build -f app/client/Dockerfile -t client:v0.0.1 .
-
docker build -f app/client/Dockerfile -t
${}
client:v0.0.1 .
only
:
-
master
This diff is collapsed.
Click to expand it.
app/client/Dockerfile
+
1
−
1
View file @
5c566648
...
...
@@ -16,7 +16,7 @@ RUN npm run build
# Put this stuff into a nginx server
FROM
nginx:latest
# copy from previous build to this image
COPY
--from=build /usr/src/app/build /usr/share/nginx/html
EXPOSE
80
...
...
This diff is collapsed.
Click to expand it.
app/client/chart/client/values.yaml
+
1
−
1
View file @
5c566648
...
...
@@ -5,7 +5,7 @@
replicaCount
:
1
image
:
repository
:
nginx
repository
:
nginx
# !Change this to the actual image
pullPolicy
:
IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag
:
"
"
...
...
This diff is collapsed.
Click to expand it.
app/server/Dockerfile
0 → 100644
+
15
−
0
View file @
5c566648
FROM
node:12.16.3
WORKDIR
"/usr/app"
COPY
package*.json ./
COPY
. .
RUN
npm
install
--production
ENV
PORT 3002
ENV
NODE_ENV production
EXPOSE
3002
CMD
["npm", "start"]
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