diff options
Diffstat (limited to 'pse-dashboard/Dockerfile')
-rw-r--r-- | pse-dashboard/Dockerfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pse-dashboard/Dockerfile b/pse-dashboard/Dockerfile new file mode 100644 index 0000000..c2da218 --- /dev/null +++ b/pse-dashboard/Dockerfile @@ -0,0 +1,24 @@ +# syntax=docker/dockerfile:1 + +# +# Building phase +# +FROM node:19-bullseye AS builder + +ARG VITE_BACKEND_URL=http://localhost:8080 + +ENV VITE_BACKEND_URL=$VITE_BACKEND_URL + +WORKDIR /app +COPY . . +RUN npm install +RUN npm run build + +# +# NGINX phase +# +FROM nginx:alpine + +COPY --from=builder /app/dist/ /usr/share/nginx/html/ +COPY ./conf.d/nginx.conf /etc/nginx/conf.d/default.conf + |