Skip to content

Commit f8fa32f

Browse files
authored
libatomic1を追加、npm installから公式のインストールスクリプトに変更
1 parent ffec0bb commit f8fa32f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎Dockerfile‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55

66
FROM node:lts-slim AS dependencies
77

8+
RUN apt-get update && apt-get install -y libatomic1 curl
9+
810
# Install pnpm
9-
RUN npm install -g pnpm
11+
RUN curl -fsSL https://get.pnpm.io/install.sh | sh -
1012

1113
WORKDIR /app
1214

@@ -24,11 +26,11 @@ RUN mkdir app && pnpm exec tsx ./scripts/removeHinting.ts
2426

2527
FROM node:lts-slim AS builder
2628

27-
# Install pnpm
28-
RUN npm install -g pnpm
29+
# ca-certificatesはビルド中にsentryでソースマップをアップロードするのに必要
30+
RUN apt-get update && apt-get install -y ca-certificates libatomic1 curl
2931

30-
# ビルド中にsentryでソースマップをアップロードするのに必要
31-
RUN apt-get update && apt-get install -y ca-certificates
32+
# Install pnpm
33+
RUN curl -fsSL https://get.pnpm.io/install.sh | sh -
3234

3335
# Set working directory
3436
WORKDIR /app

0 commit comments

Comments
 (0)