treetrail-backend/Containerfile
phil 5c27a26e78
All checks were successful
/ test (push) Successful in 25s
/ build (push) Successful in 15s
Update registry and containers for CI
2024-12-05 18:59:55 +01:00

26 lines
622 B
Docker

# Build: podman build -t code.philo.ydns.eu/philorg/treetrail-backend-base -f Containerfile.base
FROM tiptop:5000/treetrail-backend-deps
ENV PYTHONPATH $UV_PROJECT_ENVIRONMENT/lib/python3.12/site-packages
ARG APP_VERSION=0.0.0
COPY . /src
#RUN --mount=type=cache,target=/root/.cache \
# cd /src && \
# uv sync --locked --no-dev --no-editable
RUN uv pip install \
--python=$UV_PROJECT_ENVIRONMENT \
--no-deps \
/src
RUN echo $APP_VERSION > /app/version.txt
CMD [ \
"uvicorn", "treetrail.application:app", \
"--port", "8081", \
#"--log-config", "/app/config/logging.yaml", \
"--host", "0.0.0.0" \
]