Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nos Hs2023
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Språksamlingane
stadnamn
Nos Hs2023
Commits
6bc9e803
Commit
6bc9e803
authored
3 years ago
by
esikkala
Browse files
Options
Downloads
Patches
Plain Diff
Add new build args to Dockerfile
parent
f4ff5d44
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+7
-1
7 additions, 1 deletion
Dockerfile
with
7 additions
and
1 deletion
Dockerfile
+
7
−
1
View file @
6bc9e803
FROM
node:14.15.1-alpine
ARG
API_URL
ARG
GOOGLE_APPLICATION_CREDENTIALS
ARG
SHEETS_API_SHEET_ID
# Create app directory
RUN
mkdir
/opt/app
&&
chown
node:node /opt/app
...
...
@@ -24,7 +26,11 @@ COPY babel.config.js ./
COPY
src ./src
# Run the scripts defined in package.json
RUN
npm
install
&&
API_URL
=
$API_URL
npm run build
RUN
npm
install
&&
\
API_URL=$API_URL \
GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS \
SHEETS_API_SHEET_ID=$SHEETS_API_SHEET_ID \
npm run build
EXPOSE
3001
...
...
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