Skip to content

Commit c80780a

Browse files
committed
chore: update Dockerfile to improve build environment and add missing .npmrc
1 parent 03094ae commit c80780a

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1.7
2+
13
# ================ #
24
# Base Stage #
35
# ================ #
@@ -6,15 +8,23 @@ FROM node:22-alpine AS base
68

79
WORKDIR /usr/src/app
810

11+
ENV HUSKY=0
912
ENV PNPM_HOME="/pnpm"
1013
ENV PATH="$PNPM_HOME:$PATH"
11-
ENV CI=true
1214

13-
RUN apk add --no-cache dumb-init g++ make python3
15+
RUN set -ex && \
16+
apk add --no-cache \
17+
jq \
18+
libc6-compat \
19+
curl \
20+
build-base \
21+
dumb-init
22+
1423
RUN corepack enable
1524

1625
COPY --chown=node:node package.json .
1726
COPY --chown=node:node pnpm-lock.yaml .
27+
COPY --chown=node:node .npmrc .
1828

1929
ENTRYPOINT ["dumb-init", "--"]
2030

0 commit comments

Comments
 (0)