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

30
frontend/Dockerfile Normal file
View file

@ -0,0 +1,30 @@
FROM node:14-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
RUN npm run build
##
FROM node:14-alpine AS server
ENV NODE_ENV=production
RUN npm install -g serve
RUN apk add postgresql-client
WORKDIR /app
COPY package*.json ./
COPY --from=builder /app/build ./build
ENV PORT=3003
EXPOSE 3003
USER node
CMD ["serve", "-s", "build"]