42Cummer commited on
Commit
975e840
·
verified ·
1 Parent(s): 871f6a9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -9
Dockerfile CHANGED
@@ -14,18 +14,10 @@ RUN pip install --no-cache-dir -r requirements.txt
14
  COPY app.py .
15
  COPY wordle_words.txt .
16
  COPY templates/ templates/
17
- COPY static/ static/
18
-
19
- # Create a non-root user for security
20
- RUN useradd --create-home --shell /bin/bash app && chown -R app:app /app
21
- USER app
22
 
23
  # Expose port 7860 (Hugging Face Spaces default)
24
  EXPOSE 7860
25
 
26
- # Set environment variables
27
- ENV FLASK_APP=app.py
28
- ENV FLASK_ENV=production
29
-
30
  # Run the application
31
  CMD ["python", "app.py"]
 
14
  COPY app.py .
15
  COPY wordle_words.txt .
16
  COPY templates/ templates/
17
+ COPY static/ static
 
 
 
 
18
 
19
  # Expose port 7860 (Hugging Face Spaces default)
20
  EXPOSE 7860
21
 
 
 
 
 
22
  # Run the application
23
  CMD ["python", "app.py"]