Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -11
Dockerfile
CHANGED
@@ -1,23 +1,20 @@
|
|
1 |
-
|
2 |
-
FROM node:18
|
3 |
-
|
4 |
-
RUN apk add --no-cache git libc6-compat python3 make g++ build-base
|
5 |
|
|
|
6 |
WORKDIR /ChatGPT-Plugins
|
7 |
|
|
|
8 |
RUN git clone https://github.com/chokiproai/ChatGPT-Plugins.git .
|
9 |
|
|
|
10 |
RUN npm install --legacy-peer-deps
|
11 |
|
|
|
12 |
RUN npm run build
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
COPY --from=builder /ChatGPT-Plugins/public ./public
|
17 |
-
COPY --from=builder /ChatGPT-Plugins/.next/standalone ./
|
18 |
-
COPY --from=builder /ChatGPT-Plugins/.next/static ./.next/static
|
19 |
-
COPY --from=builder /ChatGPT-Plugins/.next/server ./.next/server
|
20 |
-
|
21 |
EXPOSE 3000
|
22 |
|
|
|
23 |
CMD ["npm", "run", "start"]
|
|
|
1 |
+
# Use the Node.js 18 base image
|
2 |
+
FROM node:18
|
|
|
|
|
3 |
|
4 |
+
# Set the working directory inside the container
|
5 |
WORKDIR /ChatGPT-Plugins
|
6 |
|
7 |
+
# Clone the ChatGPT repository from GitHub
|
8 |
RUN git clone https://github.com/chokiproai/ChatGPT-Plugins.git .
|
9 |
|
10 |
+
# Install dependencies using npm with legacy peer dependencies
|
11 |
RUN npm install --legacy-peer-deps
|
12 |
|
13 |
+
# Build the project
|
14 |
RUN npm run build
|
15 |
|
16 |
+
# Expose port 3000 for accessing the application
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
EXPOSE 3000
|
18 |
|
19 |
+
# Specify the command to run the application
|
20 |
CMD ["npm", "run", "start"]
|