-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
54 lines (34 loc) · 954 Bytes
/
Dockerfile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM node:21-alpine3.18 AS base
RUN npm i -g pnpm
WORKDIR /app
ARG APP_ENV
ENV APP_ENV=${APP_ENV}
ARG API_BASE_URL
ENV API_BASE_URL=${API_BASE_URL}
ARG BAAN_ANNOUCE_DATE
ENV BAAN_ANNOUCE_DATE=${BAAN_ANNOUCE_DATE}
ARG CLOSED_BAAN_SELECTION_DATE
ENV CLOSED_BAAN_SELECTION_DATE=${CLOSED_BAAN_SELECTION_DATE}
ARG FIRST_DATE_DATE
ENV FIRST_DATE_DATE=${FIRST_DATE_DATE}
ARG FRESHY_NIGHT_DATE
ENV FRESHY_NIGHT_DATE=${FRESHY_NIGHT_DATE}
ARG FRESHY_NIGHT_EVENT
ENV FRESHY_NIGHT_EVENT=${FRESHY_NIGHT_EVENT}
ARG RPKM_DAY_1
ENV RPKM_DAY_1=${RPKM_DAY_1}
ARG RPKM_DAY_2
ENV RPKM_DAY_2=${RPKM_DAY_2}
ARG RUP_PEUN_DATE
ENV RUP_PEUN_DATE=${RUP_PEUN_DATE}
COPY package.json pnpm-lock.yaml ./
RUN pnpm install
COPY . .
RUN pnpm build
FROM node:21-alpine3.18 AS production
WORKDIR /app
COPY --from=base /app/.next/standalone .
COPY --from=base /app/.next/static ./.next/static
COPY --from=base /app/public ./public
EXPOSE 3000
CMD ["node", "server.js"]