-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (30 loc) · 758 Bytes
/
Dockerfile
File metadata and controls
47 lines (30 loc) · 758 Bytes
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
FROM node:20 AS build
WORKDIR /app
COPY web/package.json ./web/
COPY web/yarn.lock ./web/
RUN cd /app/web && yarn
COPY common/package.json ./common/
COPY common/yarn.lock ./common/
RUN cd /app/common && yarn
COPY common/ ./common/
RUN cd /app/common && yarn prepublishOnly
COPY web/ ./web/
ARG DD_CLIENT_TOKEN
ARG DD_APP_ID
ARG APP_ENV
ARG APP_VERSION
ARG MAPTILER_KEY
ARG TEST_ACCOUNT
ENV NEXT_DD_CLIENT_TOKEN ${DD_CLIENT_TOKEN}
ENV NEXT_DD_APP_ID ${DD_APP_ID}
ENV NEXT_APP_ENV ${APP_ENV}
ENV NEXT_APP_VERSION ${APP_VERSION}
ENV NEXT_MAPTILER_KEY ${MAPTILER_KEY}
ENV NEXT_TEST_ACCOUNT ${TEST_ACCOUNT}
RUN cd /app/web && yarn build
FROM node:20
WORKDIR /app
COPY --from=build /app/web /app
ENV HOST 0.0.0.0
EXPOSE 3000
CMD ["yarn", "start"]