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
6ee125d8
Commit
6ee125d8
authored
4 years ago
by
derrabauke
Browse files
Options
Downloads
Patches
Plain Diff
finally fix docker build
parent
9e6baede
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-2
1 addition, 2 deletions
.gitlab-ci.yml
app/client/Dockerfile
+6
-2
6 additions, 2 deletions
app/client/Dockerfile
with
7 additions
and
4 deletions
.gitlab-ci.yml
+
1
−
2
View file @
6ee125d8
...
@@ -50,10 +50,9 @@ build_client:
...
@@ -50,10 +50,9 @@ build_client:
image
:
docker:19.03.12
image
:
docker:19.03.12
tags
:
tags
:
-
docker-privileged
-
docker-privileged
services
:
-
docker:19.03.12-dind
stage
:
build
stage
:
build
script
:
script
:
-
cd app/client
-
docker build -f app/client/Dockerfile -t $CLIENT_IMAGE_TAG .
-
docker build -f app/client/Dockerfile -t $CLIENT_IMAGE_TAG .
-
docker tag $CLIENT_IMAGE_TAG $CLIENT_RELEASE_IMAGE_TAG
-
docker tag $CLIENT_IMAGE_TAG $CLIENT_RELEASE_IMAGE_TAG
-
docker push $CLIENT_RELEASE_IMAGE_TAG
-
docker push $CLIENT_RELEASE_IMAGE_TAG
...
...
This diff is collapsed.
Click to expand it.
app/client/Dockerfile
+
6
−
2
View file @
6ee125d8
...
@@ -3,11 +3,15 @@ FROM node:12.16.3 as build
...
@@ -3,11 +3,15 @@ FROM node:12.16.3 as build
RUN
mkdir
/usr/src/app
RUN
mkdir
/usr/src/app
WORKDIR
/usr/src/app
WORKDIR
/usr/src/app
COPY
. ./
COPY
package*.json ./
ENV
PATH /usr/src/app/node_modules/.bin:$PATH
ENV
PATH /usr/src/app/node_modules/.bin:$PATH
RUN
ls
-a
RUN
npm
install
--silent
RUN
npm
install
--silent
COPY
. .
RUN
npm run build
RUN
npm run build
# Put this stuff into a nginx server
# Put this stuff into a nginx server
...
...
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