Skip to content

Commit

Permalink
Merge pull request #24 from femshima/build-optimize
Browse files Browse the repository at this point in the history
Update node.js (& shorten build time)
  • Loading branch information
cm-ayf authored Dec 8, 2023
2 parents f3d6151 + b1fb105 commit 9a526f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# syntax=docker/dockerfile:1

FROM node:18.18.2 AS deps
FROM node:18.19.0 AS deps
ARG NODE_ENV=production
WORKDIR /app
COPY ./package*.json ./
RUN npm ci

FROM node:18.18.2 AS builder
FROM --platform=$BUILDPLATFORM node:18.19.0 AS builder
ARG NODE_ENV=development
WORKDIR /app
COPY ./build.js ./
Expand All @@ -15,7 +15,7 @@ RUN npm ci
COPY ./src/ ./src/
RUN npm run build

FROM node:18 AS model-fetch
FROM --platform=$BUILDPLATFORM node:18 AS model-fetch

WORKDIR /app
RUN wget https://github.com/jpreprocess/jpreprocess/releases/download/v0.6.1/naist-jdic-jpreprocess.tar.gz \
Expand Down

0 comments on commit 9a526f5

Please sign in to comment.