Skip to content

Commit d0c9c05

Browse files
Add Dockerfile and README.md
1 parent 6ddb6b8 commit d0c9c05

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Use an official Node.js base image
2+
FROM node:14
3+
4+
# Set the working directory to /app
5+
WORKDIR /app
6+
7+
# Copy the application code into the container
8+
COPY . /app
9+
10+
# Install dependencies
11+
RUN npm install
12+
13+
# Expose port 3000
14+
EXPOSE 3000
15+
16+
# Use a non-root user to run the application
17+
USER node
18+
19+
# Command to start the application
20+
CMD ["npm", "start"]
21+

0 commit comments

Comments
 (0)