captain-awesome
commited on
Commit
•
e6d7156
1
Parent(s):
c692e6f
Create Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a base image with Python and Streamlit dependencies
|
2 |
+
FROM python:3.8
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy your application code into the container
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
+
# Install required dependencies
|
11 |
+
RUN pip install -r requirements.txt
|
12 |
+
|
13 |
+
# Expose the port that Streamlit runs on (default is 8501)
|
14 |
+
EXPOSE 8501
|
15 |
+
|
16 |
+
# Run your Streamlit app when the container starts
|
17 |
+
CMD ["streamlit", "run", "app.py"]
|