Skip to content

Commit

Permalink
Added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
francescomasala committed Nov 27, 2023
1 parent 87cce64 commit 8ddd457
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM node:lts-alpine3.18
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Install dependencies
RUN apk update && apk upgrade
RUN apk add --no-cache git

# Copy source code
COPY . /usr/src/app
RUN npm install
RUN npm run build

# Expose port
EXPOSE 3000

# Environment variables
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000

# Run the app
CMD ["npm", "start"]

1 comment on commit 8ddd457

@vercel
Copy link

@vercel vercel bot commented on 8ddd457 Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.