From 36dec9d31458c8de1078969b500b70ee62acbb44 Mon Sep 17 00:00:00 2001 From: CerealBoy Date: Sat, 6 Jul 2024 12:47:58 +1000 Subject: [PATCH] Also the Dockerfile needed improvements --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 625656b..ae63885 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,12 @@ FROM node:slim AS fe WORKDIR /app -COPY *.j* index.html yarn.lock ./ +COPY *.j* index.html yarn.lock .yarnrc.yml ./ COPY src ./src/ -RUN yarn && NODE_OPTIONS=--openssl-legacy-provider yarn build +COPY .yarn ./.yarn/ +RUN corepack enable && \ + yarn set version 4.3.1 && \ + yarn install && \ + yarn build FROM golang:alpine AS be WORKDIR /ep