aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/Dockerfile
blob: 0e6499cf0bbf394e70272f65fc70c54b07679028 (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
ARG ALBATROSS_HOST

FROM node:22.14 AS builder

WORKDIR /app
ENV NODE_ENV=production

COPY package.json package-lock.json .
RUN npm install --include=dev

COPY . .
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"]