fix: add old docker compose and revert entrypoint

This commit is contained in:
Henry
2025-06-17 10:57:54 +01:00
parent fc6bb22400
commit 2e11199764
3 changed files with 84 additions and 6 deletions

View File

@@ -56,10 +56,10 @@ 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/
# # 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
@@ -81,5 +81,5 @@ ARG PORT=3000
ENV PORT=${PORT}
EXPOSE ${PORT}
CMD ["/bin/sh", "./entrypoint.sh"]
CMD ["sh", "-c", "cd /app && pnpm db:migrate && cd /app/apps/web && pnpm start"]

View File

@@ -10,7 +10,7 @@ configureRuntimeEnv();
/** @type {import("next").NextConfig} */
const config = {
output: "standalone",
// output: "standalone",
reactStrictMode: true,
/** Enables hot reloading for local packages without a build step */