-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (22 loc) · 834 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
FROM node:18
ARG NEXT_PUBLIC_DOMAIN=${NEXT_PUBLIC_DOMAIN}
ENV NEXT_PUBLIC_DOMAIN=${NEXT_PUBLIC_DOMAIN}
ARG NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
ENV NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL}
ARG NEXT_PUBLIC_PAYLOAD_SCHEMA=${NEXT_PUBLIC_PAYLOAD_SCHEMA}
ENV NEXT_PUBLIC_PAYLOAD_SCHEMA=${NEXT_PUBLIC_PAYLOAD_SCHEMA}
ARG PAYLOAD_API_KEY=${PAYLOAD_API_KEY}
ENV PAYLOAD_API_KEY=${PAYLOAD_API_KEY}
ARG NEXT_PUBLIC_BASE_PAYLOAD_URL=${NEXT_PUBLIC_BASE_PAYLOAD_URL}
ENV NEXT_PUBLIC_BASE_PAYLOAD_URL=${NEXT_PUBLIC_BASE_PAYLOAD_URL}
ARG NEXT_PUBLIC_THEME=${NEXT_PUBLIC_THEME}
ENV NEXT_PUBLIC_THEME=${NEXT_PUBLIC_THEME}
WORKDIR /app
RUN apt-get update && \
apt-get install -y python3
COPY package.json yarn.lock ./
COPY next.config.js ./
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn build
CMD ["yarn", "start"]