henztech commited on
Commit
37e5177
·
verified ·
1 Parent(s): 002ceca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -7,15 +7,15 @@ RUN apk add --no-cache git bash
7
  # Set working directory
8
  WORKDIR /app
9
 
10
- # Clone your repo (including .env)
11
  RUN git clone https://github.com/EMMYHENZ-TECH/flasher . && \
12
- rm -rf .git && \ # Remove .git for security
13
- npm install --production # Install only production deps
14
 
15
- # Copy .env separately (if needed for Hugging Face)
16
- # COPY .env .env # Uncomment if Hugging Face needs this
17
 
18
- # Set default port for Hugging Face
19
  ENV PORT=7860
20
  EXPOSE 7860
21
 
 
7
  # Set working directory
8
  WORKDIR /app
9
 
10
+ # Clone your repo and install production dependencies
11
  RUN git clone https://github.com/EMMYHENZ-TECH/flasher . && \
12
+ rm -rf .git && \
13
+ npm install --production
14
 
15
+ # Optional: Copy .env file (uncomment if needed)
16
+ # COPY .env .env
17
 
18
+ # Set environment variable for port (used by Hugging Face)
19
  ENV PORT=7860
20
  EXPOSE 7860
21