From ca1ce5d0fa36420594b46b0f22fe7034829ec948 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Thu, 8 May 2025 21:30:52 +1000 Subject: [PATCH] fix: docker build --- server/Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index cef3e9b3..128e0d00 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,9 +1,8 @@ # pull pre-configured and updated build environment FROM debian:testing-20250317-slim AS build-system -# setup workdir -RUN mkdir /build -WORKDIR /build +# setup workdir - has to be the same filepath as app because fuckin' Prisma +WORKDIR /app # install dependencies and build RUN apt-get update -y @@ -11,18 +10,18 @@ RUN apt-get install node-corepack -y RUN corepack enable COPY . . RUN NUXT_TELEMETRY_DISABLED=1 yarn install --network-timeout 1000000 +RUN NUXT_TELEMETRY_DISABLED=1 yarn prisma generate RUN NUXT_TELEMETRY_DISABLED=1 yarn build # create run environment for Drop FROM node:lts-slim AS run-system -RUN mkdir /app WORKDIR /app -COPY --from=build-system /build/.output ./app -COPY --from=build-system /build/prisma ./prisma -COPY --from=build-system /build/package.json ./ -COPY --from=build-system /build/build ./startup +COPY --from=build-system /app/.output ./app +COPY --from=build-system /app/prisma ./prisma +COPY --from=build-system /app/package.json ./ +COPY --from=build-system /app/build ./startup # OpenSSL as a dependency for Drop (TODO: seperate build environment) RUN apt-get update -y && apt-get install -y openssl