umgefahren
commited on
Commit
·
550eb76
1
Parent(s):
5bd4d08
Maybe perfection
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
@@ -15,8 +15,6 @@ RUN apt-get install -y build-essential ffmpeg libsm6 libxext6
|
|
15 |
RUN apt-get update
|
16 |
RUN apt-get install -t unstable -y gdal-bin libgdal-dev
|
17 |
|
18 |
-
RUN conda install -y python=3.10
|
19 |
-
|
20 |
RUN mkdir -p /data
|
21 |
|
22 |
RUN chmod 777 /data
|
@@ -25,6 +23,8 @@ RUN useradd -m -u 1000 user
|
|
25 |
|
26 |
USER user
|
27 |
|
|
|
|
|
28 |
ENV HOME=/home/user \
|
29 |
PATH=/home/user/.local/bin:$PATH
|
30 |
|
@@ -41,10 +41,6 @@ RUN python -m pip install gradio
|
|
41 |
|
42 |
COPY --chown=user . $HOME/app
|
43 |
|
44 |
-
ENV TORCH_HOME /tmp/torch
|
45 |
-
ENV MPLCONFIGDIR /tmp/matplotlib
|
46 |
-
|
47 |
RUN mkdir -m 700 -p /home/user/app/cache
|
48 |
|
49 |
-
|
50 |
CMD ["python", "main.py"]
|
|
|
15 |
RUN apt-get update
|
16 |
RUN apt-get install -t unstable -y gdal-bin libgdal-dev
|
17 |
|
|
|
|
|
18 |
RUN mkdir -p /data
|
19 |
|
20 |
RUN chmod 777 /data
|
|
|
23 |
|
24 |
USER user
|
25 |
|
26 |
+
RUN conda install -y python=3.10
|
27 |
+
|
28 |
ENV HOME=/home/user \
|
29 |
PATH=/home/user/.local/bin:$PATH
|
30 |
|
|
|
41 |
|
42 |
COPY --chown=user . $HOME/app
|
43 |
|
|
|
|
|
|
|
44 |
RUN mkdir -m 700 -p /home/user/app/cache
|
45 |
|
|
|
46 |
CMD ["python", "main.py"]
|