blob: 8ec3bec9b94a11a7e0d1079d9a113478e43bb938 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
FROM python:3.12-slim
RUN apt update -y \
&& apt install -y curl \
&& rm -rf /var/lib/apt/lists/*
# Install project dependencies
WORKDIR /thallium
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY . .
HEALTHCHECK --start-period=5s --interval=30s --timeout=1s CMD curl http://localhost/heartbeat || exit 1
# Define Git SHA build argument for sentry
ARG git_sha="development"
ENV GIT_SHA=$git_sha
ARG thallium_semver="0.0.0"
ENV THALLIUM_VERSION="$thallium_semver"
ENTRYPOINT ["/bin/bash", "-c"]
CMD ["alembic upgrade head && uvicorn src.app:fastapi_app --host 0.0.0.0 --port 8000 --no-server-header"]
|