-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (15 loc) · 542 Bytes
/
Dockerfile
File metadata and controls
26 lines (15 loc) · 542 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
FROM ghcr.io/ender-null/polaris-base:latest-debian as builder
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json ./
COPY yarn.lock ./
RUN yarn install
COPY . .
RUN yarn run build
FROM ghcr.io/ender-null/polaris-base:latest-debian as release
LABEL org.opencontainers.image.source https://github.com/ender-null/polaris
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/node_modules ./node_modules
COPY --from=builder /usr/src/app/build ./build
COPY --from=builder /usr/src/app/package.json ./
CMD ["yarn", "start"]