Skip to content

Instantly share code, notes, and snippets.

@jmoz
Created January 15, 2023 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoz/d24561f0620ba96e35b1e666f571b2ca to your computer and use it in GitHub Desktop.
Save jmoz/d24561f0620ba96e35b1e666f571b2ca to your computer and use it in GitHub Desktop.
Minimal Python 3.11-slim Dockerfile
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
RUN mkdir /code
WORKDIR /code
COPY requirements.txt .
RUN apt-get update && apt-get -y install git libxml2-dev libxslt-dev gcc zlib1g-dev
RUN pip3 install --upgrade pip setuptools wheel
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
CMD python sbt.py --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment