chore(docker): add test compose fixtures
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
FROM python:3.14-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PYTHONPATH=/app/app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml ./
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade pip && \
|
||||
pip install --no-cache-dir \
|
||||
"authlib>=1.6.0" \
|
||||
"fastapi[standard]>=0.135.3" \
|
||||
"motor>=3.7.1" \
|
||||
"pwdlib[argon2,bcrypt]>=0.3.0" \
|
||||
"pydantic>=2.12.5" \
|
||||
"pydantic-settings>=2.13.1" \
|
||||
"pyyaml>=6.0.3" \
|
||||
"redis>=7.4.0"
|
||||
|
||||
COPY app ./app
|
||||
|
||||
EXPOSE 3671
|
||||
|
||||
CMD ["sh", "-c", "fastapi run /app/app/main.py --host 0.0.0.0 --port ${API_PORT:-3671}"]
|
||||
Reference in New Issue
Block a user