Skip to content

Commit

Permalink
fix: alpine でビルドできない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
l3tnun committed Jun 9, 2024
1 parent 96290d5 commit 5cf2ea3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ RUN npm install --no-save --loglevel=info
COPY . /app/
RUN npm run build --loglevel=info

FROM node:18-alpine AS server-builder
RUN apk add --no-cache g++ make pkgconf python3
FROM node:18-alpine3.19 AS server-builder
RUN apk add --no-cache g++ make pkgconf python3 py3-pip
# node-sqlite3 が依存する node-gyp が が依存する python3 の distutils 廃止に対応
# node-sqlite3 が依存する node-gyp が v10 以上になれば不要になる
RUN pip install --break-system-pack setuptools
WORKDIR /app
COPY package*.json /app/
ENV DOCKER="YES"
Expand Down

0 comments on commit 5cf2ea3

Please sign in to comment.