mirror of
https://gitlab.com/mobicoop/v3/service/user.git
synced 2025-12-31 04:12:40 +00:00
update compose
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# BUILD FOR LOCAL DEVELOPMENT
|
||||
###################
|
||||
|
||||
FROM node:18-alpine As development
|
||||
FROM node:18-alpine3.16 As development
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /usr/src/app
|
||||
@@ -25,7 +25,7 @@ USER node
|
||||
# BUILD FOR PRODUCTION
|
||||
###################
|
||||
|
||||
FROM node:18-alpine As build
|
||||
FROM node:18-alpine3.16 As build
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
@@ -47,7 +47,6 @@ RUN npm run build
|
||||
|
||||
# Set NODE_ENV environment variable
|
||||
ENV NODE_ENV production
|
||||
|
||||
# Running `npm ci` removes the existing node_modules directory.
|
||||
# Passing in --only=production ensures that only the production dependencies are installed.
|
||||
# This ensures that the node_modules directory is as optimized as possible.
|
||||
@@ -59,7 +58,7 @@ USER node
|
||||
# PRODUCTION
|
||||
###################
|
||||
|
||||
FROM node:18-alpine As production
|
||||
FROM node:18-alpine3.16 As production
|
||||
|
||||
# Copy package.json to be able to execute migration command
|
||||
COPY --chown=node:node package*.json ./
|
||||
|
||||
Reference in New Issue
Block a user