Switch to npm, added docker setup

This commit is contained in:
Juan Sebastián Montoya 2024-09-26 19:00:29 -05:00
parent b0c2c217fe
commit 819379fba4
7 changed files with 1922 additions and 1024 deletions

16
dockerfile Normal file
View 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"]