mirror of
https://github.com/tale/headplane.git
synced 2026-08-25 20:06:48 +00:00
fix: remix relies on build dir
This commit is contained in:
+2
-2
@@ -11,11 +11,11 @@ RUN pnpm prune --prod
|
|||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/build /app
|
COPY --from=build /app/build /app/build
|
||||||
COPY --from=build /app/node_modules /app/node_modules
|
COPY --from=build /app/node_modules /app/node_modules
|
||||||
RUN echo '{"type":"module"}' > /app/package.json
|
RUN echo '{"type":"module"}' > /app/package.json
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV HOST=0.0.0.0
|
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" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user