summaryrefslogtreecommitdiff
path: root/pse-dashboard/Dockerfile
blob: c2da218e686c51137ed0298225935fff2347c49c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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