Initial commit --
This commit is contained in:
parent
9283d45874
commit
3cd5d356cb
88 changed files with 16758 additions and 48488 deletions
30
frontend/Dockerfile
Normal file
30
frontend/Dockerfile
Normal 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"]
|
||||
Loading…
Reference in a new issue