This commit is contained in:
oitsjustjose 2020-10-17 23:34:27 -05:00
commit 231adbe93f
123 changed files with 16683 additions and 62496 deletions

27
backend/Dockerfile Normal file
View file

@ -0,0 +1,27 @@
FROM node:14 AS builder
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build-ts
FROM node:14-alpine AS server
WORKDIR /usr/src/app
RUN chown -R node:node /usr/src/app
USER node
EXPOSE 5000
COPY package*.json ./
RUN npm install --production
COPY --from=0 /usr/src/app/dist dist
ENV NODE_ENV=production
CMD ["node", "dist/server.js"]