Skip to content

Commit a17c0d0

Browse files
committed
fix: nginx brotli enbaled
1 parent c97cb80 commit a17c0d0

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Dockerfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
FROM node:22-alpine AS builder
1+
FROM node:20-alpine AS builder
22

3-
WORKDIR /app
4-
5-
RUN corepack enable yarn && \
6-
yarn set version 4.9.2
3+
RUN apk add --no-cache git
74

5+
WORKDIR /app
86
COPY package.json .
97
COPY yarn.lock .
10-
COPY .yarn/ .yarn/
11-
COPY .yarnrc.yml ./
128

13-
RUN apk add --no-cache git
14-
RUN yarn install --immutable --network-timeout 600000
9+
RUN yarn install --frozen-lockfile --network-timeout 600000
1510

11+
COPY src/ src
12+
COPY nginx.conf .
13+
COPY tsconfig.json .
14+
COPY vite.config.mts .
1615
COPY . .
1716

1817
RUN echo `git rev-parse --short=9 HEAD` > health.html && \
@@ -21,7 +20,7 @@ RUN echo `git rev-parse --short=9 HEAD` > health.html && \
2120

2221
RUN yarn build
2322

24-
FROM nginx:stable
23+
FROM fholzer/nginx-brotli:v1.26.2
2524

2625
RUN useradd -ms /bin/bash devtron
2726
COPY --from=builder /app/dist/ /usr/share/nginx/html

0 commit comments

Comments
 (0)