# Use the Node.js 18 slim image as a parent image | |
FROM node:18-slim | |
# Install git (required for cloning the repository) | |
RUN apt-get update && apt-get install -y git | |
# Set the working directory in the container | |
WORKDIR /app | |
# Clone the repository | |
RUN git clone https://huggingface.co/datasets/PyxiVerse/server . | |
# Install the dependencies | |
RUN npm install | |
# Expose port 7860 | |
EXPOSE 7860 | |
# Start the application | |
CMD ["npm", "start"] |