Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Latest commit 69b42ff Mar 5, 2025 History
1 contributor

Users who have contributed to this file

# Use an official Python runtime as the base image
FROM python:3.10
LABEL authors="anirban"
# Set the working directory in the container
WORKDIR /app
# Copy the application files into the container
COPY . /app
# Copy the requirements.txt file separately to leverage Docker's layer caching
COPY requirements.txt /app/
# Install Python dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Install system dependencies (if required)
RUN apt-get update && apt-get install -y libxt6 # Required for some Shiny apps
# Expose the port on which the app runs
EXPOSE 8000
# Command to run the application
CMD ["python", "-m", "shiny", "run", "app.py", "--port", "8000", "--host", "0.0.0.0"]