dockerfile
This commit is contained in:
parent
5618200fc5
commit
74d51bd8dd
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
# Specify the base image
|
||||
FROM node:lts-alpine
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json (if available) to the working directory
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN yarn
|
||||
|
||||
# Copy the rest of the application code
|
||||
COPY . .
|
||||
|
||||
RUN yarn build
|
||||
|
||||
# Expose a port (if your app needs to listen on a specific port)
|
||||
EXPOSE 3000
|
||||
|
||||
# Define the command to run your app
|
||||
CMD ["yarn", "start"]
|
||||
Loading…
Reference in New Issue
Block a user