-
Notifications
You must be signed in to change notification settings - Fork 0
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
96426c9
commit f5f3cd4
Showing
2 changed files
with
29 additions
and
5 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
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 |
---|---|---|
@@ -1,11 +1,23 @@ | ||
FROM node:22-alpine | ||
FROM node:22-alpine | ||
|
||
# Set the working directory | ||
WORKDIR /usr/src/app | ||
|
||
# Copy package.json and package-lock.json first to leverage Docker caching | ||
COPY package*.json ./ | ||
|
||
# Install app dependencies | ||
RUN npm install | ||
|
||
# Copy the SSL certificates into the image | ||
COPY ssl/server.key ./ssl/server.key | ||
COPY ssl/server.cert ./ssl/server.cert | ||
|
||
# Copy the rest of the application source code | ||
COPY . . | ||
|
||
EXPOSE 3000 | ||
# Expose the port your app runs on (3000 in this case) | ||
EXPOSE 3000 | ||
|
||
CMD ["npm", "start"] | ||
# Command to run your app | ||
CMD ["npm", "start"] |