diff --git a/Dockerfile b/Dockerfile index d3d2ebb0..ec239f24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021 -FROM node:20.11.1-bookworm@sha256:e06aae17c40c7a6b5296ca6f942a02e6737ae61bbbf3e2158624bb0f887991b5 AS deps +FROM node:20.12.0-bookworm@sha256:bf0ef0687ffbd6c7742e1919177826c8bf1756a68b51f003dcfe3a13c31c65fe AS deps ARG NODE_ENV=production WORKDIR /app RUN npm config set cache /.npm @@ -9,7 +9,7 @@ COPY ./package*.json ./ RUN --mount=type=cache,id=npm-$TARGETPLATFORM,target=/.npm \ npm ci -FROM --platform=$BUILDPLATFORM node:20.11.1-bookworm@sha256:e06aae17c40c7a6b5296ca6f942a02e6737ae61bbbf3e2158624bb0f887991b5 AS builder +FROM --platform=$BUILDPLATFORM node:20.12.0-bookworm@sha256:bf0ef0687ffbd6c7742e1919177826c8bf1756a68b51f003dcfe3a13c31c65fe AS builder ARG NODE_ENV=development WORKDIR /app RUN npm config set cache /.npm @@ -21,17 +21,17 @@ RUN --mount=type=cache,id=npm-$TARGETPLATFORM,target=/.npm \ COPY ./src/ ./src/ RUN npm run build -FROM --platform=$BUILDPLATFORM node:20.11.1-bookworm@sha256:e06aae17c40c7a6b5296ca6f942a02e6737ae61bbbf3e2158624bb0f887991b5 AS dictionary +FROM --platform=$BUILDPLATFORM node:20.12.0-bookworm@sha256:bf0ef0687ffbd6c7742e1919177826c8bf1756a68b51f003dcfe3a13c31c65fe AS dictionary WORKDIR /app RUN wget https://github.com/jpreprocess/jpreprocess/releases/download/v0.6.1/naist-jdic-jpreprocess.tar.gz \ && tar xzf naist-jdic-jpreprocess.tar.gz \ && rm naist-jdic-jpreprocess.tar.gz -FROM --platform=$BUILDPLATFORM node:20.11.1-bookworm@sha256:e06aae17c40c7a6b5296ca6f942a02e6737ae61bbbf3e2158624bb0f887991b5 AS models +FROM --platform=$BUILDPLATFORM node:20.12.0-bookworm@sha256:bf0ef0687ffbd6c7742e1919177826c8bf1756a68b51f003dcfe3a13c31c65fe AS models WORKDIR /app RUN git clone --depth 1 https://github.com/icn-lab/htsvoice-tohoku-f01.git -FROM --platform=$BUILDPLATFORM node:20.11.1-bookworm@sha256:e06aae17c40c7a6b5296ca6f942a02e6737ae61bbbf3e2158624bb0f887991b5 AS user-dictionary +FROM --platform=$BUILDPLATFORM node:20.12.0-bookworm@sha256:bf0ef0687ffbd6c7742e1919177826c8bf1756a68b51f003dcfe3a13c31c65fe AS user-dictionary WORKDIR /app RUN wget https://github.com/jpreprocess/jpreprocess/releases/download/v0.6.3/x86_64-unknown-linux-gnu-.zip \ && unzip x86_64-unknown-linux-gnu-.zip \