Initial commit
This commit is contained in:
commit
94fe4e9746
7 changed files with 253 additions and 0 deletions
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Set base image
|
||||
FROM python:3.9-slim-buster
|
||||
|
||||
# Set work directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy requirements file
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy app file
|
||||
COPY main.py .
|
||||
|
||||
# Set environment variables
|
||||
ENV PORT 8501
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8501
|
||||
|
||||
# Run Streamlit app
|
||||
CMD ["streamlit", "run", "--server.port=8501", "main.py"]
|
Loading…
Add table
Add a link
Reference in a new issue