Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dummy Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Examples
Javascript
Dummy Backend
Commits
ba0f9552
Unverified
Commit
ba0f9552
authored
8 months ago
by
Dmitriy Safronov
Committed by
GitHub
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: envs (#20)
Signed-off-by:
Dmitriy Safronov
<
zimniy@cyberbrain.pw
>
parent
7e7e93cb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+3
-3
3 additions, 3 deletions
Dockerfile
with
3 additions
and
3 deletions
Dockerfile
+
3
−
3
View file @
ba0f9552
...
...
@@ -4,7 +4,7 @@ ARG NPM_VERSION=10.8.0
# --------------> The builder image
FROM
node:$NODE_VERSION
AS
builder
ENV
NODE_ENV
production
ENV
NODE_ENV
=
production
WORKDIR
/usr/src/app
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
dumb-init
ARG
NPM_TOKEN
...
...
@@ -13,10 +13,10 @@ RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && \
npm
install
-g
npm@
$NPM_VERSION
&&
\
npm ci
--omit
=
dev
&&
\
rm
-f
.npmrc
# --------------> The production image
FROM
node:$NODE_VERSION-slim
AS
production
ENV
NODE_ENV
production
ENV
NODE_ENV
=
production
WORKDIR
/usr/src/app
COPY
--from=builder /usr/bin/dumb-init /usr/bin/dumb-init
COPY
--chown=node:node --from=builder /usr/src/app/node_modules /usr/src/app/node_modules
...
...
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