Skip to content

Commit b0bed1e

Browse files
committed
optimize: copy source code in Dockerfile
Signed-off-by: K8sCat <[email protected]>
1 parent d6f5a09 commit b0bed1e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.dockerignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
docker-compose/
2+
.github/
3+
.gitignore
4+
start.bat
5+
Dockerfile
6+
.dockerignore

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ FROM node:19
44
# Set the working directory
55
WORKDIR /app
66

7-
# Clone the project repository
8-
RUN git clone https://github.com/PawanOsman/ChatGPT.git /app
7+
# Copy source code
8+
COPY . .
99

1010
# Install dependencies
1111
RUN npm install

0 commit comments

Comments
 (0)