tr0n / Dockerfile
unknownfriend00007's picture
Create Dockerfile
9f8197c verified
raw
history blame contribute delete
372 Bytes
# Use the official Node.js image
FROM node:18-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy package files and install dependencies
COPY package.json .
RUN npm install
# Copy the rest of your application code
COPY server.js .
# Hugging Face Spaces expects apps to run on port 7860
EXPOSE 7860
# Start the server
CMD ["node", "server.js"]