mirror of
https://github.com/OMGeeky/flucto-heisskleber.git
synced 2026-01-02 17:46:38 +01:00
22 lines
496 B
Docker
22 lines
496 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM python:3.9-slim-buster
|
|
|
|
ENV POETRY_VERSION=1.4 \
|
|
POETRY_VIRTUALENVS_CREATE=false
|
|
|
|
# Install poetry
|
|
RUN pip install "poetry==$POETRY_VERSION"
|
|
|
|
# Copy only requirements to cache them in docker layer
|
|
WORKDIR /code
|
|
COPY poetry.lock pyproject.toml /code/
|
|
|
|
# Project initialization:
|
|
RUN poetry install --no-interaction --no-ansi --no-root --no-dev
|
|
|
|
# Copy Python code to the Docker image
|
|
COPY heisskleber /code/heisskleber/
|
|
|
|
CMD [ "python", "heisskleber/foo.py"]
|