Small fixes and touches.

This commit is contained in:
oitsjustjose 2020-11-02 11:05:43 -06:00
commit 14fe0267c7
15 changed files with 1167 additions and 534 deletions

28
Dockerfile Normal file
View file

@ -0,0 +1,28 @@
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=3000
EXPOSE 3000
USER node
CMD ["serve", "-s", "build"]