| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=22.04 |
| ADD file:c5143b228eb55f19ed4d3b653ad68ec7afe54ded0247e090ce3afb9e5484adfb in / |
| CMD ["/bin/bash"] |
| ENV DEBIAN_FRONTEND=noninteractive PIP_NO_CACHE_DIR=1 PYTHONUNBUFFERED=1 |
| RUN /bin/sh -c rm -f /etc/dpkg/dpkg.cfg.d/excludes && apt-get update && apt-get install -y --no-install-recommends love xvfb ffmpeg git ca-certificates curl mesa-utils libgl1-mesa-dri xdotool python3 python3-pip && ln -sf /usr/bin/python3 /usr/bin/python && rm -rf /var/lib/apt/lists/* # buildkit |
| WORKDIR /app |
| COPY pyproject.toml ./ # buildkit |
| COPY playtest_server ./playtest_server # buildkit |
| RUN /bin/sh -c pip install --no-cache-dir -U pip setuptools wheel && pip install --no-cache-dir . && uvicorn --version # buildkit |
| EXPOSE [8093/tcp] |
| HEALTHCHECK {Test:[CMD-SHELL curl -fsS http://localhost:8093/health || exit 1] Interval:30s Timeout:10s StartPeriod:30s StartInterval:0s Retries:5} |
| CMD ["uvicorn" "playtest_server.server:app" "--host" "0.0.0.0" "--port" "8093"] |