Added Dockerfile
This commit is contained in:
parent
08e86da64e
commit
7b21a5996b
28
Dockerfile
Normal file
28
Dockerfile
Normal file
|
@ -0,0 +1,28 @@
|
|||
FROM node:21
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install app dependencies
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
# Bundle app source
|
||||
|
||||
COPY . .
|
||||
|
||||
# Build app source
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# Set environment variables
|
||||
|
||||
ENV PORT=80
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
|
||||
|
||||
CMD [ "npm", "start" ]
|
Loading…
Reference in New Issue
Block a user