daniel-de-leon
commited on
Commit
•
675a95c
1
Parent(s):
5c4e4a0
Fix for using intel/deep-learning container
Browse files- Dockerfile +5 -10
Dockerfile
CHANGED
@@ -1,19 +1,14 @@
|
|
1 |
-
FROM
|
2 |
-
#FROM intel/oneapi-aikit
|
3 |
-
#FROM intel/deep-learning:2023.2-py3.10
|
4 |
|
5 |
WORKDIR /app
|
6 |
|
7 |
COPY ./requirements.txt /app/requirements.txt
|
8 |
COPY ./packages.txt /app/packages.txt
|
9 |
|
10 |
-
RUN
|
11 |
-
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
USER user
|
16 |
-
ENV HOME /home/user
|
17 |
ENV PATH $HOME/.local/bin:$PATH
|
18 |
|
19 |
WORKDIR $HOME
|
@@ -23,7 +18,7 @@ COPY . $HOME/app
|
|
23 |
|
24 |
EXPOSE 8501
|
25 |
CMD streamlit run app.py \
|
26 |
-
#--server.address="
|
27 |
--server.headless true \
|
28 |
--server.enableCORS false \
|
29 |
--server.enableXsrfProtection false \
|
|
|
1 |
+
FROM intel/deep-learning:2024.0-py3.10
|
|
|
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
COPY ./requirements.txt /app/requirements.txt
|
6 |
COPY ./packages.txt /app/packages.txt
|
7 |
|
8 |
+
RUN pip3 install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r /app/requirements.txt
|
|
|
9 |
|
10 |
+
USER dev
|
11 |
+
ENV HOME /home/dev
|
|
|
|
|
12 |
ENV PATH $HOME/.local/bin:$PATH
|
13 |
|
14 |
WORKDIR $HOME
|
|
|
18 |
|
19 |
EXPOSE 8501
|
20 |
CMD streamlit run app.py \
|
21 |
+
#--server.address="0.0.0.0" \
|
22 |
--server.headless true \
|
23 |
--server.enableCORS false \
|
24 |
--server.enableXsrfProtection false \
|