Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
0373845b
Commit
0373845b
authored
May 24, 2023
by
Nick Zenchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing GIT_COMMIT_SHA in docker image
parent
f8eeafb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Dockerfile
Dockerfile
+4
-4
No files found.
Dockerfile
View file @
0373845b
...
...
@@ -26,16 +26,16 @@ ARG NEXT_PUBLIC_SENTRY_DSN
ARG
SENTRY_CSP_REPORT_URI
ARG
SENTRY_AUTH_TOKEN
# pass commit sha to the app (uses by sentry.io as release version)
ARG
GIT_COMMIT_SHA
ENV
NEXT_PUBLIC_GIT_COMMIT_SHA=$GIT_COMMIT_SHA
RUN
yarn build
# Production image, copy all the files and run next
FROM
node:18-alpine AS runner
WORKDIR
/app
# pass commit sha to the app (uses by sentry.io as release version)
ARG
GIT_COMMIT_SHA
ENV
NEXT_PUBLIC_GIT_COMMIT_SHA=$GIT_COMMIT_SHA
ENV
NODE_ENV production
# Uncomment the following line in case you want to disable telemetry during runtime.
# ENV NEXT_TELEMETRY_DISABLED 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment