blob: d78afc30691d112ddcb6423c5aea64f270c06de5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FROM node:22.14 AS builder
ARG ALBATROSS_HOST
ARG ALBATROSS_BASE_PATH
WORKDIR /app
ENV NODE_ENV=production
COPY package.json package-lock.json ./
COPY frontend/package.json frontend/
RUN npm install -w frontend --include=dev
COPY frontend/ frontend/
ENV ALBATROSS_BASE_PATH="$ALBATROSS_BASE_PATH"
RUN npm -w frontend run build
################################################################################
FROM nginx:1.27-alpine
COPY --from=builder /app/frontend/dist /usr/share/nginx/html
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
|