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
73f201d8
Commit
73f201d8
authored
4 years ago
by
derrabauke
Browse files
Options
Downloads
Patches
Plain Diff
trying to fix docker build
parent
efa0d02c
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
-1
1 addition, 1 deletion
.gitlab-ci.yml
app/client/Dockerfile
+4
-2
4 additions, 2 deletions
app/client/Dockerfile
with
5 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
1
View file @
73f201d8
...
...
@@ -54,7 +54,7 @@ build_client:
-
docker:19.03.12-dind
stage
:
build
script
:
-
docker build
--network host
-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 push $CLIENT_RELEASE_IMAGE_TAG
only
:
...
...
This diff is collapsed.
Click to expand it.
app/client/Dockerfile
+
4
−
2
View file @
73f201d8
# Build a release
FROM
node:12.16.3
FROM
node:12.16.3
as
build
RUN
mkdir
/usr/src/app
RUN
ls
WORKDIR
/usr/src/app
RUN
ls
COPY
package*.json ./
ENV
PATH /usr/src/app/node_modules/.bin:$PATH
...
...
@@ -15,7 +17,7 @@ RUN npm run build
# Put this stuff into a nginx server
FROM
nginx:latest
COPY
--from=
0
/usr/src/app/build /usr/share/nginx/html
COPY
--from=
build
/usr/src/app/build /usr/share/nginx/html
EXPOSE
80
...
...
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