optimize: copy source code in Dockerfile

Signed-off-by: K8sCat <k8scat@gmail.com>
This commit is contained in:
K8sCat
2024-04-11 10:17:09 +08:00
parent d6f5a0918a
commit b0bed1ed53
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
docker-compose/
.github/
.gitignore
start.bat
Dockerfile
.dockerignore
+2 -2
View File
@@ -4,8 +4,8 @@ FROM node:19
# Set the working directory
WORKDIR /app
# Clone the project repository
RUN git clone https://github.com/PawanOsman/ChatGPT.git /app
# Copy source code
COPY . .
# Install dependencies
RUN npm install