Skip to content

Commit

Permalink
Entrypoint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
calebsmithdev committed Feb 10, 2024
1 parent 34f4127 commit 001b0df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ RUN npm install
ADD . /app
RUN npm run build

# start final image
# Start final image
FROM node:20-alpine

WORKDIR /app

# copy over build files from builder step
# Copy over build files from builder step
COPY --from=builder /app/.output app/.output
COPY --from=builder /app/.nuxt app/.nuxt

# expose the host and port 3000 to the server
# Expose the host and port 3000 to the server
ENV HOST 0.0.0.0
EXPOSE 3000

CMD [ "npm", "run", "start" ]
# Run the build project with node
ENTRYPOINT ["node", ".output/server/index.mjs"]

0 comments on commit 001b0df

Please sign in to comment.