Compare commits

...

12 Commits

Author SHA1 Message Date
Henry
bd076d5efe chore: remove spacing 2025-06-16 22:50:05 +01:00
Henry
0757855451 fix: remove log 2025-06-16 22:45:48 +01:00
Henry
d65244f94d fix: copy static files 2025-06-16 22:42:58 +01:00
Henry
290b72660c fix: log contents of build 2025-06-16 22:36:06 +01:00
Henry
2dad48d223 fix: remove workdir 2025-06-16 22:30:12 +01:00
Henry
5125a735e5 fix: add logs to debug 2025-06-16 22:26:59 +01:00
Henry
aba9f972a8 fix: copy files from inside the container 2025-06-16 22:23:44 +01:00
Henry
b90defa872 fix: set workdir 2025-06-16 22:19:28 +01:00
Henry
8d5bd61474 fix: copy from root 2025-06-16 22:11:57 +01:00
Henry
eeedc77a0f fix: update Dockerfile to copy static files from apps/web directory 2025-06-16 22:07:19 +01:00
Henry
4f152e1224 fix: update Dockerfile to use /bin/sh for entrypoint execution 2025-06-16 21:43:24 +01:00
Henry
4d48bf140d fix: copy static files to standalone dir 2025-06-16 21:39:59 +01:00

View File

@@ -53,8 +53,14 @@ RUN --mount=type=cache,id=pnpm,target=~/.pnpm-store pnpm install --frozen-lockfi
# Copy source code of isolated subworkspace
COPY --from=pruner /app/out/full/ .
RUN pnpm build --filter=${PROJECT}
# Copy static files to standalone directory
RUN mkdir -p apps/web/.next/standalone/.next && \
mv apps/web/public apps/web/.next/standalone/ && \
mv apps/web/.next/static apps/web/.next/standalone/.next/
# 4. Final image - runner stage to run the application
FROM base AS runner
ARG APP_DIRNAME
@@ -75,5 +81,5 @@ ARG PORT=3000
ENV PORT=${PORT}
EXPOSE ${PORT}
CMD ["./entrypoint.sh"]
CMD ["/bin/sh", "./entrypoint.sh"]