Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
# Use the Node.js 18 base image
|
| 2 |
FROM node:18
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
# Clone the ChatGPT repository from GitHub
|
| 5 |
RUN git clone -b Copilot https://github.com/Niansuh/ChatGPT.git
|
| 6 |
|
| 7 |
# Set the working directory inside the container
|
| 8 |
-
WORKDIR
|
| 9 |
|
| 10 |
# Install dependencies using npm
|
| 11 |
RUN npm install
|
|
|
|
| 1 |
# Use the Node.js 18 base image
|
| 2 |
FROM node:18
|
| 3 |
|
| 4 |
+
# Update system environment
|
| 5 |
+
RUN apk update && apk upgrade && apk add --no-cache git
|
| 6 |
+
|
| 7 |
# Clone the ChatGPT repository from GitHub
|
| 8 |
RUN git clone -b Copilot https://github.com/Niansuh/ChatGPT.git
|
| 9 |
|
| 10 |
# Set the working directory inside the container
|
| 11 |
+
WORKDIR /app
|
| 12 |
|
| 13 |
# Install dependencies using npm
|
| 14 |
RUN npm install
|