FROM python:3.13-alpine

ARG VERSION=1.0.0
ENV SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION

WORKDIR /

COPY ./dist /dist
RUN pip install --no-cache-dir /dist/*.whl

EXPOSE 5151

# Uses the packaged default config.yaml. Pass --config to use a custom file.
CMD ["keycloak-mockup"]
