cbl-flasher / Dockerfile
henztech's picture
Update Dockerfile
37e5177 verified
raw
history blame contribute delete
537 Bytes
# 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"]