From 4d35ee40508a22aedfb005d85ccebdf871ee687c Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 4 Oct 2024 18:14:59 +0100 Subject: [PATCH] 7 --- apps/frontend/Dockerfile | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/apps/frontend/Dockerfile b/apps/frontend/Dockerfile index ba46079..3bbc6aa 100644 --- a/apps/frontend/Dockerfile +++ b/apps/frontend/Dockerfile @@ -9,6 +9,9 @@ WORKDIR /app RUN pnpm i -g turbo@^2 COPY . . +# Install depends +RUN pnpm install + # Add the commit hash ARG GIT_REV ENV GIT_REV=${GIT_REV} @@ -17,18 +20,7 @@ ENV GIT_REV=${GIT_REV} ARG SENTRY_AUTH_TOKEN ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN} -RUN pnpm i -g turbo@^2 - -RUN pnpm install - RUN pnpm turbo run build --filter=frontend -# Add the commit hash -ARG GIT_REV -ENV GIT_REV=${GIT_REV} - EXPOSE 3000 - -COPY /app/apps/frontend/.next/standalone ./apps/frontend - -CMD node /app/apps/frontend/server.js \ No newline at end of file +CMD node /app/apps/frontend/.next/standalone/server.js \ No newline at end of file