Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ymuichiro committed Feb 12, 2024
1 parent bde3dbd commit 4e8a7b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
FROM node:20-alpine as build
FROM node:20-bookworm-slim as build

WORKDIR /app
COPY . /app

# BUILD sharp 向けに C# のコンパイラをインストールしてから npm 側の処理を開始する
RUN apk add --no-cache --update --repository http://dl-3.alpinelinux.org/alpine/edge/testing libtool automake autoconf nasm vips-dev fftw-dev gcc g++ make libc6-compat && \
npm ci && \
RUN npm ci && \
npm run build

RUN rm -rf src && rm package-lock.json
Expand Down

0 comments on commit 4e8a7b0

Please sign in to comment.