-
-
Save ruyut/6d3fcfafdb8e497b73ce63036f74d1aa to your computer and use it in GitHub Desktop.
Dockerfile for Deploying Nuxt3 inside a Docker Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:lts-alpine | |
WORKDIR /app | |
COPY package*.json ./ | |
RUN npm ci | |
COPY . . | |
RUN npm run build | |
# customize port 80 | |
EXPOSE 80 | |
CMD ["sh", "-c", "NITRO_PORT=80 node .output/server/index.mjs"] | |
# default port 3000 | |
# EXPOSE 3000 | |
# CMD ["node", ".output/server/index.mjs"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment