Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoBackendAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dojo Project (HES-SO)
Projects
Backend
DojoBackendAPI
Commits
b490fbea
Commit
b490fbea
authored
1 year ago
by
michael.minelli
Browse files
Options
Downloads
Patches
Plain Diff
Package => Bug fix: add src in dist path
parent
a89a7e76
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile_ExpressAPI
+11
-11
11 additions, 11 deletions
Dockerfile_ExpressAPI
ExpressAPI/package.json
+1
-1
1 addition, 1 deletion
ExpressAPI/package.json
with
12 additions
and
12 deletions
Dockerfile_ExpressAPI
+
11
−
11
View file @
b490fbea
ARG BUILD_WORKDIR=/dojo/ExpressAPI
ARG BUILD_
DEPLOY_
WORKDIR=/dojo/ExpressAPI
...
...
@@ -7,13 +7,13 @@ FROM node:20-bullseye AS builder
LABEL maintainer="Michaël Minelli <michael-jean.minelli@hesge.ch>"
LABEL Description="Express API for Dojo - Build stage"
ARG BUILD_WORKDIR
ARG BUILD_
DEPLOY_
WORKDIR
# Create app directory
ADD ExpressAPI/ ${BUILD_WORKDIR}/
ADD .env ${BUILD_WORKDIR}/.env
ADD ExpressAPI/ ${BUILD_
DEPLOY_
WORKDIR}/
ADD .env ${BUILD_
DEPLOY_
WORKDIR}/.env
WORKDIR ${BUILD_WORKDIR}
WORKDIR ${BUILD_
DEPLOY_
WORKDIR}
# Install app dependencies
RUN npm install
...
...
@@ -28,13 +28,13 @@ FROM node:20-bullseye
LABEL maintainer="Michaël Minelli <michael-jean.minelli@hesge.ch>"
LABEL Description="Express API for Dojo - Run stage"
ARG BUILD_WORKDIR
ARG BUILD_
DEPLOY_
WORKDIR
COPY --from=builder ${BUILD_WORKDIR}/node_modules
.
/node_modules
COPY --from=builder ${BUILD_WORKDIR}/package*.json
.
/
COPY --from=builder ${BUILD_WORKDIR}/dist
.
/dist
COPY --from=builder ${BUILD_WORKDIR}/prisma
.
/prisma
COPY --from=builder ${BUILD_WORKDIR}/.env
.
/.env
COPY --from=builder ${BUILD_
DEPLOY_
WORKDIR}/node_modules
${BUILD_DEPLOY_WORKDIR}
/node_modules
COPY --from=builder ${BUILD_
DEPLOY_
WORKDIR}/package*.json
${BUILD_DEPLOY_WORKDIR}
/
COPY --from=builder ${BUILD_
DEPLOY_
WORKDIR}/dist
${BUILD_DEPLOY_WORKDIR}
/dist
COPY --from=builder ${BUILD_
DEPLOY_
WORKDIR}/prisma
${BUILD_DEPLOY_WORKDIR}
/prisma
COPY --from=builder ${BUILD_
DEPLOY_
WORKDIR}/.env
${BUILD_DEPLOY_WORKDIR}
/.env
EXPOSE 30992
...
...
This diff is collapsed.
Click to expand it.
ExpressAPI/package.json
+
1
−
1
View file @
b490fbea
...
...
@@ -12,7 +12,7 @@
"database:seed"
:
"npx prisma db seed"
,
"database:deploy"
:
"npm run database:migrate && npm run database:seed"
,
"start:dev"
:
"npx nodemon src/app.ts"
,
"start:prod"
:
"NODE_ENV=production npx node --max-http-header-size=1048576 dist/app.js"
,
"start:prod"
:
"NODE_ENV=production npx node --max-http-header-size=1048576 dist/
src/
app.js"
,
"start:migrate:prod"
:
"npm run database:deploy && npm run start:prod"
},
"prisma"
:
{
...
...
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