Files
thechart/Dockerfile
William Valentin 4d79e2bae1 first commit
2025-07-15 11:06:36 -07:00

32 lines
675 B
Docker

# Use a Python Alpine base image
FROM python:3.13-alpine
# Set the working directory in the container
WORKDIR /app
# Install necessary system dependencies
RUN apk add --no-cache \
build-base \
libffi-dev \
musl-dev \
libressl-dev \
tk-dev \
tcl-dev \
xorg-server \
xauth \
xvfb \
&& pip install --upgrade pip
# Copy the requirements file and install dependencies
COPY src/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY src/ .
# Expose the port your application listens on (if applicable)
# EXPOSE 8000
# Define the command to run your application
CMD ["python", "main.py"]