Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
backoffice_client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
web-et-numerique
Factory
LLLE_Project
backoffice_client
Commits
d9e1754f
Commit
d9e1754f
authored
2 years ago
by
Yoan VALLET
Browse files
Options
Downloads
Patches
Plain Diff
fix(docker): use yarn.lock during build
parent
4b9d0dfe
No related branches found
No related tags found
1 merge request
!52
Dev
Pipeline
#38898
passed
2 years ago
Stage: build
Stage: quality
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+4
-3
4 additions, 3 deletions
Dockerfile
with
4 additions
and
3 deletions
Dockerfile
+
4
−
3
View file @
d9e1754f
...
...
@@ -2,10 +2,11 @@
FROM
node:14-alpine
as
build-stage
WORKDIR
/app
COPY
package*.json /app/
RUN
npm
install
COPY
package.json /app/
COPY
yarn.lock /app/
RUN
yarn
install
COPY
./ /app/
RUN
npm ru
n build
RUN
yar
n build
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
FROM
nginx:1.16
...
...
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