fix: changed to production with nginx serving the files
This commit is contained in:
20
sysadmin_panel/Dockerfile
Normal file
20
sysadmin_panel/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
ARG VITE_CLOUD_URL
|
||||
ENV VITE_CLOUD_URL=$VITE_CLOUD_URL
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 5175
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user