New UI who dis
This commit is contained in:
parent
cde7194936
commit
43fc7d78d0
14 changed files with 440 additions and 0 deletions
24
frontend/Dockerfile
Normal file
24
frontend/Dockerfile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
FROM node:18-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:18-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=3000
|
||||
EXPOSE 3000
|
||||
USER node
|
||||
CMD ["serve", "-s", "build"]
|
||||
Loading…
Reference in a new issue