fix: add old docker compose and revert entrypoint
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user