Permalink
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?
Penguins-ShinyPy/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (17 sloc)
724 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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"] | |