From 55bd72d6bfd4f02cd9260154fa9b92f816fc237f Mon Sep 17 00:00:00 2001 From: MTRNord Date: Thu, 14 Sep 2023 09:52:36 +0200 Subject: [PATCH] Add missing package.json to image and update to node 20 --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f9fd351b..3841a1dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # We can't use alpine anymore because crypto has rust deps. -FROM --platform=$BUILDPLATFORM node:18-slim AS build +FROM --platform=$BUILDPLATFORM node:20-slim AS build # install git RUN apt-get update && \ apt-get install -y git\ @@ -8,12 +8,13 @@ COPY . . RUN yarn install --network-timeout 100000 \ && yarn build -FROM node:18-slim +FROM node:20-slim COPY --from=build /lib /mjolnir COPY --from=build /node_modules /node_modules COPY --from=build mjolnir-entrypoint.sh . COPY --from=build version.txt . +COPY --from=build package.json . ENV NODE_ENV=production ENV NODE_CONFIG_DIR=/data/config