goingyt commited on
Commit
48f3581
Β·
verified Β·
1 Parent(s): 699f6ab

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -14
Dockerfile CHANGED
@@ -1,17 +1,12 @@
1
- # Base image (e.g., Ubuntu)
2
- FROM ubuntu:latest
3
 
4
- # Install basic tools (optional)
5
- RUN apt-get update && apt-get install -y \
6
- sudo \
7
- bash \
8
- curl \
9
- git
10
 
11
- # Add a non-root user (optional but recommended)
12
- RUN useradd -m user && echo "user:user" | chpasswd && adduser user sudo
13
- USER user
14
- WORKDIR /home/user
15
 
16
- # Start a shell session
17
- CMD ["/bin/bash"]
 
 
 
 
1
+ FROM python:3.9-slim
 
2
 
3
+ WORKDIR /app
 
 
 
 
 
4
 
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
7
 
8
+ COPY app/ .
9
+
10
+ EXPOSE 7860
11
+
12
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "main:app"]