Snaplocal / server /Dockerfile
Kuruva Laxmi
Add Dockerfile for Hugging Face deployment
6a15011
Raw
History Blame Contribute Delete
302 Bytes
FROM node:18-alpine
# Create app directory
WORKDIR /app
# Install app dependencies
COPY package*.json ./
RUN npm install
# Copy the rest of the backend source code
COPY . .
# Hugging Face Spaces require the app to run on port 7860
ENV PORT=7860
EXPOSE 7860
# Start the server
CMD ["npm", "start"]