treetrail-backend/Containerfile

27 lines
601 B
Text
Raw Normal View History

2024-10-30 02:07:05 +01:00
FROM localhost/treetrail-backend-base
2024-10-27 02:09:13 +02:00
RUN <<EOT
groupadd -r app
useradd -r -d /app -g app -N app
mkdir /var/lib/treetrail
chown app: /var/lib/treetrail
EOT
COPY --from=localhost/treetrail-backend-base --chown=app:app /app /app
USER app
WORKDIR /app
2024-10-23 16:19:51 +02:00
# Instances should override the prod.yaml file
2024-10-27 02:09:13 +02:00
#COPY ./prod.yaml /etc/treetrail/prod.yaml
#COPY ./dist/treetrail_backend-0.3.0.tar.gz /src/
#RUN uv pip install /src/treetrail_backend-0.3.0.tar.gz
2024-10-23 16:19:51 +02:00
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" \
]