-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
c907a91
commit 9512206
Showing
4 changed files
with
36 additions
and
9 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,6 @@ | ||
node_modules | ||
npm-debug.log | ||
Dockerfile | ||
docker-compose.yml | ||
.git | ||
.gitignore |
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
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,23 @@ | ||
# Use the official Node.js image. | ||
FROM node:18 | ||
|
||
# Create and set the working directory. | ||
WORKDIR /app | ||
|
||
# Copy package.json and package-lock.json (or yarn.lock) first to leverage Docker cache. | ||
COPY package*.json ./ | ||
|
||
# Install dependencies. | ||
RUN npm install | ||
|
||
# Copy the rest of the application files. | ||
COPY . . | ||
|
||
# Build the application. | ||
RUN npm run build | ||
|
||
# Expose the port the app runs on. | ||
EXPOSE 3000 | ||
|
||
# Start the application. | ||
CMD ["npm", "run", "start"] |
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