Initial commit
This commit is contained in:
commit
2463355b0b
11 changed files with 1029 additions and 0 deletions
14
Containerfile
Normal file
14
Containerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Build: podman build -t treetrail-backend-base -f Containerfile.base
|
||||
|
||||
FROM docker.io/python:3.12-alpine
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/
|
||||
|
||||
ENV PORT=8025
|
||||
ENV LISTEN_ADDR=0.0.0.0
|
||||
ENV SMS_HANDLER_MAIL_SERVER=host.containers.internal
|
||||
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
RUN uv sync --frozen --no-cache
|
||||
|
||||
CMD .venv/bin/fastapi run server.py --port ${PORT} --host ${LISTEN_ADDR}
|
Loading…
Add table
Add a link
Reference in a new issue