Spaces:
Sleeping
Sleeping
Pecximenes
commited on
Commit
•
4b8f101
1
Parent(s):
de34cab
Updating Dockerfile and testing deploy
Browse files- .gitignore +1 -0
- Dockerfile +22 -6
.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1 |
__pycache__
|
|
|
|
1 |
__pycache__
|
2 |
+
.env
|
Dockerfile
CHANGED
@@ -1,8 +1,24 @@
|
|
1 |
FROM python:3.10
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
EXPOSE 8501
|
8 |
-
CMD
|
|
|
|
|
|
|
|
|
|
1 |
FROM python:3.10
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
COPY ./requirements.txt /app/requirements.txt
|
6 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
7 |
+
|
8 |
+
# User
|
9 |
+
RUN useradd -m -u 1000 user
|
10 |
+
USER user
|
11 |
+
ENV HOME /home/user
|
12 |
+
ENV PATH $HOME/.local/bin:$PATH
|
13 |
+
|
14 |
+
WORKDIR $HOME
|
15 |
+
RUN mkdir app
|
16 |
+
WORKDIR $HOME/app
|
17 |
+
COPY . $HOME/app
|
18 |
+
|
19 |
EXPOSE 8501
|
20 |
+
CMD streamlit run interface/app.py \
|
21 |
+
--server.headless true \
|
22 |
+
--server.enableCORS false \
|
23 |
+
--server.enableXsrfProtection false \
|
24 |
+
--server.fileWatcherType none
|