Delete Dockerfile
Browse files- Dockerfile +0 -95
Dockerfile
DELETED
@@ -1,95 +0,0 @@
|
|
1 |
-
### use the officila python 3.10 image
|
2 |
-
|
3 |
-
FROM python:3.10
|
4 |
-
|
5 |
-
# set the working directory to /code
|
6 |
-
|
7 |
-
WORKDIR /code
|
8 |
-
|
9 |
-
# copy the current working directory contents in the container at /code
|
10 |
-
|
11 |
-
COPY ./requirements.txt /code/requirements.txt
|
12 |
-
|
13 |
-
# install the requirements
|
14 |
-
|
15 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
16 |
-
|
17 |
-
# set up a new user named "user"
|
18 |
-
RUN useradd -m user
|
19 |
-
|
20 |
-
# Switch to the "user" user
|
21 |
-
USER user
|
22 |
-
|
23 |
-
# set the home to the user's home directory
|
24 |
-
|
25 |
-
ENV HOME=/home/user \
|
26 |
-
PATH=/home/user/.local/bin:$PATH
|
27 |
-
|
28 |
-
#set the working directory to the user's home directory
|
29 |
-
WORKDIR $HOME/main
|
30 |
-
|
31 |
-
# copy the current directory contents into the container at $Home/app setting the owner
|
32 |
-
COPY --chown==user:user . $HOME/main
|
33 |
-
|
34 |
-
|
35 |
-
## start the stramlit app
|
36 |
-
CMD ["streamlit", "run", "main.py", "--server.address=0.0.0.0", "--server.port=7860"]
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
# FROM python:3.10
|
63 |
-
|
64 |
-
# # Set the working directory
|
65 |
-
# WORKDIR /code
|
66 |
-
|
67 |
-
# # Add requirements file to the Docker image
|
68 |
-
# COPY ./requirements.txt /code/requirements.txt
|
69 |
-
|
70 |
-
# # Install Python libraries
|
71 |
-
# RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
72 |
-
|
73 |
-
# # Add the app folder into the Docker image
|
74 |
-
# COPY ./app/ /code/app/
|
75 |
-
# # COPY ./app/.streamlit /code/app/.streamlit
|
76 |
-
|
77 |
-
# WORKDIR /code/app
|
78 |
-
|
79 |
-
# # Set environment variable for Flask
|
80 |
-
# # ENV FLASK_APP=app/main.py
|
81 |
-
# # ENV FLASK_RUN_PORT=80
|
82 |
-
|
83 |
-
# # Specify default command to run the Flask app
|
84 |
-
# # CMD ["flask", "run", "--host=0.0.0.0", "--port=80"]
|
85 |
-
|
86 |
-
# # Set the environment variable for Streamlit to find the config file
|
87 |
-
# # ENV STREAMLIT_CONFIG=/code/app/.streamlit/config.toml
|
88 |
-
|
89 |
-
# ENV STREAMLIT_APP=app/main.py
|
90 |
-
|
91 |
-
|
92 |
-
# # Run the Streamlit app
|
93 |
-
# CMD ["streamlit", "run", "main.py", "--server.port=80", "--server.address=0.0.0.0"]
|
94 |
-
|
95 |
-
# # CMD ["gunicorn", "--bind", "0.0.0.0:80", "app.main:app"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|