File size: 339 Bytes
040f294 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Use a lightweight Node.js image
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Initialize project and install dependencies
RUN npm init -y && \
npm install express cors node-fetch
# Copy the server code
COPY server.js .
# Expose port 7860 (Hugging Face default)
EXPOSE 7860
# Run the server
CMD ["node", "server.js"] |