Build ui for prod
This commit is contained in:
@@ -6,7 +6,7 @@ FROM node:18-alpine AS base
|
||||
FROM base AS builder
|
||||
RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /builder
|
||||
COPY . .
|
||||
COPY ui/ .
|
||||
RUN \
|
||||
if [ -f package.json ]; then \
|
||||
npm i && \
|
||||
@@ -22,7 +22,7 @@ RUN \
|
||||
FROM base AS runner
|
||||
ARG PORT=3000
|
||||
ENV PORT=${PORT}
|
||||
ENV VITE_NODE_ENV=production
|
||||
ENV VITE_NODE_ENV=development
|
||||
WORKDIR /app
|
||||
|
||||
COPY --chown=node --from=builder /builder /app
|
||||
|
||||
Reference in New Issue
Block a user