Spaces:
Running
Running
Jatin Mehra
commited on
Commit
·
e755ec9
1
Parent(s):
3d7ad51
Add secrets.toml to .gitignore & Create container
Browse files- .gitignore +1 -0
- Dockerfile +23 -0
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
secrets.toml
|
Dockerfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official Python image as the base image
|
| 2 |
+
FROM python:3.11-bullseye
|
| 3 |
+
|
| 4 |
+
# Set the working directory in the container
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Copy the requirements.txt file into the container
|
| 8 |
+
COPY requirements.txt .
|
| 9 |
+
|
| 10 |
+
# Install dependencies
|
| 11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
+
|
| 13 |
+
# Copy the secrets.toml file into the .streamlit directory
|
| 14 |
+
COPY secrets.toml /app/.streamlit/secrets.toml
|
| 15 |
+
|
| 16 |
+
# Copy the rest of the application code into the container
|
| 17 |
+
COPY . .
|
| 18 |
+
|
| 19 |
+
# Expose the Streamlit default port (8501)
|
| 20 |
+
EXPOSE 8501
|
| 21 |
+
|
| 22 |
+
# Define the command to run the app
|
| 23 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|