fix: remix relies on build dir

This commit is contained in:
Aarnav Tale 2024-03-30 05:06:17 -04:00
parent 0a8d3e26f4
commit 52c8e2c3bc
No known key found for this signature in database

View File

@ -11,11 +11,11 @@ RUN pnpm prune --prod
FROM node:20-alpine
WORKDIR /app
COPY --from=build /app/build /app
COPY --from=build /app/build /app/build
COPY --from=build /app/node_modules /app/node_modules
RUN echo '{"type":"module"}' > /app/package.json
EXPOSE 3000
ENV NODE_ENV=production
ENV HOST=0.0.0.0
CMD [ "node_modules/.bin/remix-serve", "server/index.js" ]
CMD [ "node_modules/.bin/remix-serve", "./build/server/index.js" ]