Switch to npm, added docker setup
This commit is contained in:
parent
b0c2c217fe
commit
819379fba4
7 changed files with 1922 additions and 1024 deletions
16
dockerfile
Normal file
16
dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
|||
#Build stage
|
||||
FROM node:18-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json .
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
#Prod stage
|
||||
FROM node:18-alpine AS production
|
||||
WORKDIR /app
|
||||
COPY package*.json .
|
||||
RUN npm ci --omit=dev
|
||||
COPY --from=build /app/dist ./dist
|
||||
|
||||
CMD ["npm", "run", "start"]
|
Loading…
Add table
Add a link
Reference in a new issue