Skip to content

Commit

Permalink
fix: run server standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
adriablancafort committed Oct 19, 2024
1 parent 29c9cd2 commit 14cfca3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ FROM node:alpine AS runtime

WORKDIR /app

COPY --from=build /app/next.config.js ./
COPY --from=build /app/public ./public
COPY --from=build /app/.next ./.next
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/package.json ./package.json

ENV NODE_ENV production

EXPOSE 3000

CMD ["npm", "start"]
CMD ["npm", ".next/standalone/server.js"]

0 comments on commit 14cfca3

Please sign in to comment.