Initial commit --

This commit is contained in:
oitsjustjose 2020-10-13 11:52:38 -05:00
commit 3cd5d356cb
88 changed files with 16758 additions and 48488 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 5001
COPY package*.json ./
RUN npm install --production
COPY --from=0 /usr/src/app/dist dist
ENV NODE_ENV=production
CMD ["node", "dist/server.js"]