Skip to content

Commit fa04d91

Browse files
committed
remove git install from Dockerfile
1 parent 6f128dd commit fa04d91

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

templates/node-graphql/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM node:22-alpine AS build
2-
RUN apk add --no-cache git
32
RUN npm install -g pnpm@10.12.2
43
WORKDIR /app
54
COPY . .
@@ -8,14 +7,12 @@ RUN node --experimental-strip-types scripts/generate.ts \
87
&& pnpm --filter @constructive-io/{{name}}-fn... build
98

109
FROM node:22-alpine AS deploy
11-
RUN apk add --no-cache git
1210
RUN npm install -g pnpm@10.12.2
1311
COPY --from=build /app /app
1412
WORKDIR /app
1513
RUN pnpm --filter @constructive-io/{{name}}-fn deploy --legacy /deploy --prod
1614

1715
FROM node:22-alpine
18-
RUN apk add --no-cache git
1916
WORKDIR /app
2017
COPY --from=deploy /deploy .
2118
ENV NODE_ENV=production

templates/node-pgpm/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM node:22-alpine AS build
2-
RUN apk add --no-cache git
32
RUN npm install -g pnpm@10.12.2
43
WORKDIR /app
54
COPY . .
@@ -8,14 +7,12 @@ RUN node --experimental-strip-types scripts/generate.ts \
87
&& pnpm --filter @constructive-io/{{name}}-fn... build
98

109
FROM node:22-alpine AS deploy
11-
RUN apk add --no-cache git
1210
RUN npm install -g pnpm@10.12.2
1311
COPY --from=build /app /app
1412
WORKDIR /app
1513
RUN pnpm --filter @constructive-io/{{name}}-fn deploy --legacy /deploy --prod
1614

1715
FROM node:22-alpine
18-
RUN apk add --no-cache git
1916
WORKDIR /app
2017
COPY --from=deploy /deploy .
2118
ENV NODE_ENV=production

0 commit comments

Comments
 (0)