centrer-image-frontend/Dockerfile
Francois Pelletier 94fe4e9746 Initial commit
2023-05-07 13:49:00 -04:00

23 lines
386 B
Docker

# 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"]