Skip to content

Commit

Permalink
fix: switch runtime back to node
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTL-UwU committed Feb 13, 2024
1 parent eb72038 commit 337b99b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ WORKDIR /app

# Set production environment
ENV NODE_ENV="production"
ENV NITRO_PRESET="bun"

# Install bun
RUN npm install -g bun@1.0.18
RUN npm install -g bun

# Throw-away build stage to reduce size of final image
FROM base as build
Expand All @@ -41,4 +40,4 @@ COPY --from=build /app/.output ./

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD [ "bun", "run", "/app/server/index.mjs" ]
CMD [ "node", "/app/server/index.mjs" ]

0 comments on commit 337b99b

Please sign in to comment.