ddg / Dockerfile
deepak191z's picture
Update Dockerfile
91d6d10 verified
raw
history blame contribute delete
517 Bytes
# Use a base Alpine image
FROM alpine:3.18
# Update package list and install Node.js, npm, and git
RUN apk update && \
apk add --no-cache nodejs npm git
# Set the working directory inside the container
WORKDIR /app
# Clone the repository into the working directory
RUN git clone https://github.com/leafmoes/DDG-Chat.git .
# Install npm dependencies
RUN npm install
# Expose ports:
# - 8787 as the default port
# - 7860 for Hugging Face
EXPOSE 8787
EXPOSE 7860
# Start the application
CMD ["npm", "start"]