Spaces:
Build error
Build error
#FROM node:18 | |
RUN git clone https://github.com/piktokenn/ChatGPT-Next-Web.git | |
#WORKDIR "ChatGPT-Next-Web" | |
#RUN npm i | |
#RUN npm run build | |
#EXPOSE 3000 | |
#CMD ["npm", "run", "start"] | |
# Use a Node.js base image | |
FROM node:19-alpine | |
#Clone repo | |
RUN git clone https://github.com/PawanOsman/ChatGPT.git | |
# Set the working directory | |
WORKDIR "app" | |
# Copy source code | |
COPY . . | |
# Install dependencies | |
RUN npm install | |
# Expose the port the app runs on | |
EXPOSE 3040 | |
CMD ["npm", "run", "start"] | |
# Command to run the start script | |
#CMD ["sh", "start.sh"] |