blob: 69aa4dc7cf9a9377dc7ad22a2c1cfab604035aec (
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
25
26
27
28
29
30
|
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 .
RUN npm install --include=dev
COPY . .
ENV ALBATROSS_BASE_PATH="$ALBATROSS_BASE_PATH"
RUN npm run build
################################################################################
FROM node:22.14
WORKDIR /app
ENV NODE_ENV=production
COPY package.json package-lock.json .
RUN npm install --omit=dev
COPY --from=builder /app/build ./build
ENV HOST="$ALBATROSS_HOST"
ENV PORT=80
EXPOSE 80
CMD ["npm", "run", "start"]
|