treetrail-backend/Containerfile
phil a1a499b370
Some checks failed
/ test (push) Failing after 1s
/ build (push) Has been skipped
Containers: use public registry
2024-12-06 03:16:21 +01:00

26 lines
637 B
Docker

# Build: podman build -t code.philo.ydns.eu/philorg/treetrail-backend-base -f Containerfile.base
FROM code.philo.ydns.eu/philorg/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" \
]