Skip to content

Commit 9808b47

Browse files
authored
fix: generate git info on docker build (#93)
1 parent c66b45b commit 9808b47

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ FROM node:18-alpine
33
WORKDIR /app
44
COPY . .
55

6-
RUN npm config set unsafe-perm true && npm ci && npm run build && npm prune --production
6+
RUN apk add --no-cache --virtual .build-deps git
7+
RUN npm config set unsafe-perm true && \
8+
npm ci && \
9+
npm run build && \
10+
npm run generate:git-info && \
11+
npm prune --production
12+
RUN apk del .build-deps
713

814
CMD ["node", "./dist/src/index.js"]

0 commit comments

Comments
 (0)