mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-01-08 22:52:39 +00:00
switch to redis
This commit is contained in:
@@ -12,12 +12,8 @@ WORKDIR /usr/src/app
|
||||
# Copying this first prevents re-running npm install on every code change.
|
||||
COPY --chown=node:node package*.json ./
|
||||
|
||||
# Copy prisma (needed for prisma error types)
|
||||
COPY --chown=node:node ./prisma prisma
|
||||
|
||||
# Install app dependencies using the `npm ci` command instead of `npm install`
|
||||
RUN npm ci
|
||||
RUN npx prisma generate
|
||||
|
||||
# Bundle app source
|
||||
COPY --chown=node:node . .
|
||||
@@ -43,9 +39,6 @@ COPY --chown=node:node --from=development /usr/src/app/node_modules ./node_modul
|
||||
|
||||
COPY --chown=node:node . .
|
||||
|
||||
# Copy prisma (needed for migrations)
|
||||
COPY --chown=node:node ./prisma prisma
|
||||
|
||||
# Run the build command which creates the production bundle
|
||||
RUN npm run build
|
||||
|
||||
@@ -70,7 +63,6 @@ COPY --chown=node:node package*.json ./
|
||||
|
||||
# Copy the bundled code from the build stage to the production image
|
||||
COPY --chown=node:node --from=build /usr/src/app/node_modules ./node_modules
|
||||
COPY --chown=node:node --from=build /usr/src/app/prisma ./prisma
|
||||
COPY --chown=node:node --from=build /usr/src/app/dist ./dist
|
||||
|
||||
# Start the server using the production build
|
||||
|
||||
Reference in New Issue
Block a user