Spaces:
Paused
Paused
File size: 537 Bytes
002ceca 2947db0 846c853 002ceca 846c853 2947db0 846c853 37e5177 002ceca 37e5177 846c853 37e5177 846c853 37e5177 2947db0 846c853 002ceca 846c853 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# Use lightweight Node.js 18 Alpine image
FROM node:18-alpine
# Install git and bash (for debugging)
RUN apk add --no-cache git bash
# Set working directory
WORKDIR /app
# Clone your repo and install production dependencies
RUN git clone https://github.com/EMMYHENZ-TECH/flasher . && \
rm -rf .git && \
npm install --production
# Optional: Copy .env file (uncomment if needed)
# COPY .env .env
# Set environment variable for port (used by Hugging Face)
ENV PORT=7860
EXPOSE 7860
# Start the server
CMD ["node", "server.js"] |