Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0f76252

Browse files
authored
chore: add Dockerfile (doocs#3229)
1 parent b0f757b commit 0f76252

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎Dockerfile‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Use Node.js version 14 as the base image
2+
FROM node:14
3+
4+
# Set the working directory inside the container
5+
WORKDIR /app
6+
7+
# Copy package.json and package-lock.json (if present) to the working directory
8+
COPY package*.json ./
9+
10+
# Install npm dependencies
11+
RUN npm install
12+
13+
# Copy all files from the current directory to the working directory in the container
14+
COPY . .
15+
16+
# Expose port 80 to allow communication to/from the container
17+
EXPOSE 80
18+
19+
# Specify the command to run the application
20+
CMD ["npm", "start"]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /