-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
509 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Step 1: Specify the base image | ||
FROM node:22 | ||
|
||
# Step 2: Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Step 3: Copy package.json and package-lock.json files | ||
COPY package*.json ./ | ||
|
||
# Step 4: Install dependencies | ||
RUN npm install | ||
|
||
# Step 5: Copy the rest of the application code | ||
COPY . . | ||
|
||
# Step 6: Expose the port the application runs on | ||
EXPOSE 3000 | ||
|
||
# Step 7: Define the command to run the application | ||
CMD ["npm","run","dev"] |
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
Oops, something went wrong.