Update Dockerfile
Browse files- 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
|
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 /
|
13 |
|
14 |
COPY . .
|
15 |
|
|
|
16 |
RUN bash installer.sh
|
17 |
|
18 |
-
ENV PYTHONPATH="${PYTHONPATH}:/
|
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"]
|