File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
- FROM node:22 -alpine AS builder
1
+ FROM node:20 -alpine AS builder
2
2
3
- WORKDIR /app
4
-
5
- RUN corepack enable yarn && \
6
- yarn set version 4.9.2
3
+ RUN apk add --no-cache git
7
4
5
+ WORKDIR /app
8
6
COPY package.json .
9
7
COPY yarn.lock .
10
- COPY .yarn/ .yarn/
11
- COPY .yarnrc.yml ./
12
8
13
- RUN apk add --no-cache git
14
- RUN yarn install --immutable --network-timeout 600000
9
+ RUN yarn install --frozen-lockfile --network-timeout 600000
15
10
11
+ COPY src/ src
12
+ COPY nginx.conf .
13
+ COPY tsconfig.json .
14
+ COPY vite.config.mts .
16
15
COPY . .
17
16
18
17
RUN echo `git rev-parse --short=9 HEAD` > health.html && \
@@ -21,7 +20,7 @@ RUN echo `git rev-parse --short=9 HEAD` > health.html && \
21
20
22
21
RUN yarn build
23
22
24
- FROM nginx:stable
23
+ FROM fholzer/ nginx-brotli:v1.26.2
25
24
26
25
RUN useradd -ms /bin/bash devtron
27
26
COPY --from=builder /app/dist/ /usr/share/nginx/html
You can’t perform that action at this time.
0 commit comments