shivam98 commited on
Commit
062e365
·
verified ·
1 Parent(s): ba12082

Update Dockerfile

Browse files

change to remove time zone selection

Files changed (1) hide show
  1. Dockerfile +21 -24
Dockerfile CHANGED
@@ -1,24 +1,21 @@
1
- # Base image with Python and PyTorch + torchaudio
2
- FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Install system dependencies
8
- RUN apt-get update && apt-get install -y \
9
- ffmpeg \
10
- git \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Install Python dependencies
14
- COPY requirements.txt .
15
- RUN pip install --upgrade pip && pip install -r requirements.txt
16
-
17
- # Copy app code
18
- COPY main.py .
19
-
20
- # Expose port
21
- EXPOSE 7860
22
-
23
- # Start FastAPI server
24
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV TZ=Etc/UTC
5
+
6
+ WORKDIR /app
7
+
8
+ RUN apt-get update && apt-get install -y \
9
+ ffmpeg \
10
+ git \
11
+ tzdata \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ COPY requirements.txt .
15
+ RUN pip install --upgrade pip && pip install -r requirements.txt
16
+
17
+ COPY main.py .
18
+
19
+ EXPOSE 7860
20
+
21
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]