treetrail-backend/Containerfile

27 lines
627 B
Text
Raw Normal View History

2024-12-08 05:57:04 +01:00
# Build: podman build -t code.philo.ydns.eu/philorg/treetrail-backend -f Containerfile
2024-10-27 02:09:13 +02:00
2024-12-06 03:16:21 +01:00
FROM code.philo.ydns.eu/philorg/treetrail-backend-deps
2024-10-27 02:09:13 +02:00
ENV PYTHONPATH $UV_PROJECT_ENVIRONMENT/lib/python3.12/site-packages
ARG APP_VERSION=0.0.0
2024-10-27 02:09:13 +02:00
COPY . /src
2024-10-23 16:19:51 +02:00
#RUN --mount=type=cache,target=/root/.cache \
# cd /src && \
# uv sync --locked --no-dev --no-editable
2024-10-27 02:09:13 +02:00
RUN uv pip install \
--python=$UV_PROJECT_ENVIRONMENT \
--no-deps \
/src
2024-10-23 16:19:51 +02:00
RUN echo $APP_VERSION > /app/version.txt
2024-10-27 02:09:13 +02:00
CMD [ \
"uvicorn", "treetrail.application:app", \
"--port", "8081", \
#"--log-config", "/app/config/logging.yaml", \
"--host", "0.0.0.0" \
]