Update Dockerfile
Browse files- Dockerfile +12 -12
Dockerfile
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
# for render
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
|
10 |
# for hugging face
|
11 |
-
FROM python:3.10
|
12 |
|
13 |
-
WORKDIR /code
|
14 |
|
15 |
-
COPY ./requirements.txt /code/requirements.txt
|
16 |
|
17 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
18 |
|
19 |
-
COPY . .
|
20 |
|
21 |
-
CMD ["streamlit", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
# for render
|
2 |
|
3 |
+
FROM python:3.10
|
4 |
+
COPY . /app
|
5 |
+
WORKDIR /app
|
6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
+
EXPOSE 8501
|
8 |
+
CMD streamlit run app.py --server.port $PORT
|
9 |
|
10 |
# for hugging face
|
11 |
+
# FROM python:3.10
|
12 |
|
13 |
+
# WORKDIR /code
|
14 |
|
15 |
+
# COPY ./requirements.txt /code/requirements.txt
|
16 |
|
17 |
+
# RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
18 |
|
19 |
+
# COPY . .
|
20 |
|
21 |
+
# CMD ["streamlit", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|