fomext commited on
Commit
de0ed40
·
verified ·
1 Parent(s): 96e4568

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -3
Dockerfile CHANGED
@@ -1,8 +1,19 @@
1
- FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime
2
 
3
- WORKDIR /app
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
6
 
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
 
1
+ FROM python:3.10-slim
2
 
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV TZ=Africa/Johannesburg
5
+
6
+ RUN apt-get update && apt-get install -y \
7
+ tzdata \
8
+ ffmpeg \
9
+ libgl1 \
10
+ libglib2.0-0 \
11
+ && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
12
+ && echo $TZ > /etc/timezone \
13
+ && apt-get clean \
14
+ && rm -rf /var/lib/apt/lists/*
15
 
16
+ WORKDIR /app
17
 
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt