PopcornPing / Dockerfile
Yash Goyal
Correction
2070fe3
raw
history blame contribute delete
353 Bytes
# Use Node 18
FROM node:18
# Set working directory
WORKDIR /app
# Copy everything (safe)
COPY . .
# If your code is in a 'backend' subfolder, uncomment this:
WORKDIR /app/backend
# Install dependencies (make sure package.json is in the right place)
RUN npm install
# Expose HF's required port
EXPOSE 7860
# Run the server
CMD ["node", "server.js"]