Add Dockerfile
This commit is contained in:
parent
173a4fc272
commit
5cd110fd1a
1 changed files with 21 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Use the Node.js 20.13.1 base image
|
||||
FROM node:20.18.1
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /src
|
||||
|
||||
# Copy package files and install dependencies
|
||||
COPY package*.json ./
|
||||
RUN yarn install
|
||||
|
||||
# Copy the entire application code
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN yarn build
|
||||
|
||||
# Expose the port your app runs on
|
||||
EXPOSE 3000
|
||||
|
||||
# Command to start the application
|
||||
CMD ["yarn", "start"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue