marcosremar2 commited on
Commit
b03779c
·
1 Parent(s): 2f87aed

Simplify Dockerfile for debugging

Browse files
Files changed (2) hide show
  1. .gitignore +5 -0
  2. Dockerfile +3 -9
.gitignore ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ __pycache__/
2
+ *.pyc
3
+ .env
4
+ .venv/
5
+ venv/
Dockerfile CHANGED
@@ -1,19 +1,13 @@
1
  FROM python:3.10-slim
2
 
3
- # Create non-root user
4
- RUN useradd -m -u 1000 user
5
- USER user
6
- ENV HOME=/home/user \
7
- PATH=/home/user/.local/bin:$PATH
8
-
9
- WORKDIR $HOME/app
10
 
11
  # Copy and install requirements
12
- COPY --chown=user:user requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
  # Copy application code
16
- COPY --chown=user:user app.py .
17
 
18
  EXPOSE 7860
19
 
 
1
  FROM python:3.10-slim
2
 
3
+ WORKDIR /app
 
 
 
 
 
 
4
 
5
  # Copy and install requirements
6
+ COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
  # Copy application code
10
+ COPY app.py .
11
 
12
  EXPOSE 7860
13