Spaces:
Sleeping
Sleeping
bsiddhharth commited on
Commit ·
f8c43bb
1
Parent(s): 7fce25d
updated the Docker file to work with streamlit aws
Browse files- Dockerfile +11 -3
Dockerfile
CHANGED
|
@@ -1,9 +1,17 @@
|
|
| 1 |
-
FROM python:3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY . /app
|
| 6 |
|
| 7 |
-
RUN
|
| 8 |
|
| 9 |
-
|
|
|
|
| 1 |
+
FROM python:3.8-slim-buster
|
| 2 |
+
|
| 3 |
+
EXPOSE 8501
|
| 4 |
+
|
| 5 |
+
RUN apt-get update && apt-get install -y \
|
| 6 |
+
build-essential \
|
| 7 |
+
software-properties-common \
|
| 8 |
+
git \
|
| 9 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
WORKDIR /app
|
| 12 |
|
| 13 |
COPY . /app
|
| 14 |
|
| 15 |
+
RUN pip3 install -r requirements.txt
|
| 16 |
|
| 17 |
+
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|