Skip to content

Commit 416c29d

Browse files
Merge pull request #2804 from devtron-labs/fix/dockerfile
fix: dockerfile to use yarn 4
2 parents 8f2170f + 244ba95 commit 416c29d

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
FROM node:20-alpine AS builder
2-
3-
RUN apk add --no-cache git
1+
FROM node:22-alpine AS builder
42

53
WORKDIR /app
4+
5+
RUN corepack enable yarn && \
6+
yarn set version 4.9.2
7+
68
COPY package.json .
79
COPY yarn.lock .
10+
COPY .yarn/ .yarn/
11+
COPY .yarnrc.yml ./
812

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

11-
COPY src/ src
12-
COPY nginx.conf .
13-
COPY tsconfig.json .
14-
COPY vite.config.mts .
1516
COPY . .
1617

17-
RUN echo `git rev-parse --short=9 HEAD` > health.html && \
18+
RUN echo `git rev-parse --short HEAD` > health.html && \
1819
echo "" >> .env && \
19-
echo "SENTRY_RELEASE_VERSION=dashboard@$(git rev-parse --short=9 HEAD)" >> .env
20-
21-
RUN yarn build
20+
echo "SENTRY_RELEASE_VERSION=dashboard@$(git rev-parse --short=9 HEAD)" >> .env && \
21+
yarn build
2222

2323
FROM fholzer/nginx-brotli:v1.26.2
2424

src/components/common/navigation/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const COMMON_ENV_FALLBACK: Omit<EnvironmentDataValuesDTO, 'isAirGapEnvironment'>
3030
featureGitOpsFlags: structuredClone(DEFAULT_GIT_OPS_FEATURE_FLAGS),
3131
canFetchHelmAppStatus: false,
3232
devtronManagedLicensingEnabled: false,
33-
isResourceRecommendationEnabled: true,
33+
isResourceRecommendationEnabled: false,
3434
}
3535

3636
export const ENVIRONMENT_DATA_FALLBACK: EnvironmentDataValuesDTO = {

0 commit comments

Comments
 (0)