mirror of
https://gitlab.com/mobicoop/v3/service/user.git
synced 2025-12-31 04:32:39 +00:00
start ci --check
This commit is contained in:
23
ci/Dockerfile
Normal file
23
ci/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
###################
|
||||
# BUILD FOR LOCAL DEVELOPMENT
|
||||
###################
|
||||
|
||||
FROM node:18-alpine3.16
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
||||
COPY package*.json ./
|
||||
|
||||
# Install app dependencies
|
||||
RUN npm ci
|
||||
|
||||
# Bundle app source
|
||||
COPY . .
|
||||
|
||||
# Creates a "dist" folder
|
||||
RUN npm run build
|
||||
|
||||
# Start the server
|
||||
CMD [ "node", "dist/main.js" ]
|
||||
Reference in New Issue
Block a user