diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..aae9b9a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,23 @@ +# Exclude common Python files and directories +venv/ +__pycache__/ +*.pyc +*.pyo +*.pyd +*.pyz +*.pyw +*.pyi +*.egg-info/ + +# Exclude development and local files +.env +.env.* +*.log +*.db + +# Exclude version control system files +.git/ +.gitignore +.svn/ + +storage/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..12032a4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +# Use an official Python runtime as a parent image +FROM python:3.10-slim + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Install system dependencies +RUN apt-get update && apt-get install -y \ + git \ + imagemagick \ + && rm -rf /var/lib/apt/lists/* + +# Fix security policy for ImageMagick +RUN sed -i '/