- add testing with K3D cluster - bump backend image to python 3.10-slim for newer python, smaller image. - bump to 1.2.0-beta.0
22 lines
451 B
Docker
22 lines
451 B
Docker
ARG PODMAN_VERSION=4
|
|
|
|
FROM docker.io/mgoltzsche/podman:${PODMAN_VERSION}-remote as podmanremote
|
|
|
|
FROM docker.io/library/python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
|
|
ADD requirements.txt /app
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
RUN python-on-whales download-cli
|
|
|
|
ADD btrixcloud/ /app/btrixcloud/
|
|
|
|
COPY --from=podmanremote /usr/local/bin/podman-remote /usr/bin/podman
|
|
|
|
CMD uvicorn btrixcloud.main:app_root --host 0.0.0.0 --access-log --log-level info
|
|
|
|
EXPOSE 8000
|