Initial commit \o/

This commit is contained in:
oitsjustjose 2023-01-16 15:29:44 -05:00
commit f6838c0140
87 changed files with 9726 additions and 0 deletions

24
Dockerfile Normal file
View file

@ -0,0 +1,24 @@
FROM node:16-alpine AS builder
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:16-alpine AS server
ENV NODE_ENV=production
RUN npm install -g serve
WORKDIR /app
COPY package*.json ./
COPY --from=builder /app/build ./build
ENV PORT=3001
EXPOSE 3001
USER node
CMD ["serve", "-s", "build"]