xdragxt commited on
Commit
6d590de
·
verified ·
1 Parent(s): 036d91a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -3,18 +3,19 @@
3
  # This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
4
  # PLease read the GNU Affero General Public License in <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
5
 
6
- FROM theteamultroid/ultroid:main
7
 
8
  # set timezone
9
  ENV TZ=Asia/Kolkata
10
  RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
11
 
12
- WORKDIR /root/TeamUltroid
13
 
14
  COPY . .
15
 
 
16
  RUN bash installer.sh
17
 
18
- ENV PYTHONPATH="${PYTHONPATH}:/root/TeamUltroid"
19
 
20
  CMD ["bash", "startup"]
 
3
  # This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
4
  # PLease read the GNU Affero General Public License in <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
5
 
6
+ FROM python:3.10-slim
7
 
8
  # set timezone
9
  ENV TZ=Asia/Kolkata
10
  RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
11
 
12
+ WORKDIR /app
13
 
14
  COPY . .
15
 
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
  RUN bash installer.sh
18
 
19
+ ENV PYTHONPATH="${PYTHONPATH}:/app"
20
 
21
  CMD ["bash", "startup"]