Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CloWM UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
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
Computational Metagenomics
CloWM
CloWM UI
Commits
8868ee06
Commit
8868ee06
authored
1 year ago
by
Daniel Göbel
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugfix/62-fix-typo-in-healthcheck-of-dockerfile' into 'development'
Resolve "Fix typo in healthcheck of dockerfile" Closes
#62
See merge request
!56
parents
2af1b719
7552b63c
No related branches found
No related tags found
2 merge requests
!84
Remove development branch
,
!56
Resolve "Fix typo in healthcheck of dockerfile"
Pipeline
#36632
passed
1 year ago
Stage: test
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+1
-2
1 addition, 2 deletions
Dockerfile
with
1 addition
and
2 deletions
Dockerfile
+
1
−
2
View file @
8868ee06
# build stage
# build stage
FROM
node:18
as
build-stage
FROM
node:18
as
build-stage
WORKDIR
/app
WORKDIR
/app
HEALTHCHECK
--interval=35s --timeout=4s CMD curl -f http://localhost || exit 1
# RUN apk add yarn
# RUN apk add yarn
COPY
package.json ./
COPY
package.json ./
COPY
package-lock.json ./
COPY
package-lock.json ./
...
@@ -11,7 +10,7 @@ RUN npm run build-only
...
@@ -11,7 +10,7 @@ RUN npm run build-only
# production stage
# production stage
FROM
nginx:stable-alpine
as
production-stage
FROM
nginx:stable-alpine
as
production-stage
HEALTHCHECK
--interval=30
5
s --timeout=4s CMD curl --head -f http://localhost || exit 1
HEALTHCHECK
--interval=30s --timeout=4s CMD curl --head -f http://localhost || exit 1
COPY
--from=build-stage /app/dist /usr/share/nginx/html
COPY
--from=build-stage /app/dist /usr/share/nginx/html
COPY
--from=build-stage /app/src/assets/env.template.js /tmp
COPY
--from=build-stage /app/src/assets/env.template.js /tmp
COPY
nginx.conf /etc/nginx/conf.d/default.conf
COPY
nginx.conf /etc/nginx/conf.d/default.conf
...
...
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