Compare commits

..

2 Commits

Author SHA1 Message Date
renovate[bot]
8f6ef4bbb0 Merge 23ea2babe2 into 98df462b61 2024-11-24 15:06:08 +00:00
renovate[bot]
23ea2babe2 feat(deps): update dependency anyio to v4.6.2.post1 2024-11-24 15:06:05 +00:00
4 changed files with 10 additions and 28 deletions

View File

@@ -5,7 +5,6 @@ on:
branches:
- dev
- master
- renovate/**
paths-ignore:
- "**/.github/**"
- "**/.gitignore"

View File

@@ -1,15 +1,9 @@
FROM python:3.12-slim
ARG VERSION=unknown
# Create a non-root user and group
RUN groupadd -r appuser && useradd -r -g appuser appuser
ARG VERSION=unkown
WORKDIR /app
COPY . .
# Change ownership of the application directory
RUN chown -R appuser:appuser /app
# Python setup
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
@@ -18,19 +12,13 @@ ENV ENV=DEV
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Switch to the non-root user
USER appuser
RUN pip install 'uvicorn[standard]'
EXPOSE 9000
CMD ["uvicorn", "app.main:app", "--workers", "6" , "--host", "0.0.0.0", "--port", "9000"]
# Install curl
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl && apt-get clean
# Switch back to the non-root user
USER appuser
RUN apt-get update && apt-get install -y curl && apt-get clean
HEALTHCHECK --interval=30s --timeout=10s --retries=5 \
CMD curl --fail http://localhost:9000/openapi.json || exit 1

View File

@@ -1,12 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", ":semanticCommitTypeAll(feat)"],
"packageRules": [
{
"automerge": true,
"description": "Automerge non-major updates",
"matchUpdateTypes": ["minor", "patch"],
"automergeType": "branch"
}
"extends": [
"config:recommended",
":semanticCommitTypeAll(feat)"
]
}

View File

@@ -2,13 +2,13 @@ annotated-types==0.7.0
anyio==4.6.2.post1
certifi==2024.8.30
creyPY==1.2.5
fastapi==0.115.5
fastapi==0.115.0
fastapi-pagination==0.12.31
h11==0.14.0
httpcore==1.0.6
httpx==0.27.2
idna==3.10
psycopg==3.2.4
psycopg==3.2.3
psycopg-binary==3.2.3
psycopg-pool==3.2.3
pydantic==2.9.2
@@ -16,7 +16,7 @@ pydantic_core==2.23.4
python-dotenv==1.0.1
sniffio==1.3.1
SQLAlchemy==2.0.35
starlette==0.40.0
starlette==0.38.6
typing_extensions==4.12.2
Mako==1.3.5 # Alembic
@@ -25,7 +25,7 @@ alembic==1.13.3 # Alembic
SQLAlchemy-Utils==0.41.2 # SQLAlchemy
click==8.1.8 # Uvicorn
click==8.1.7 # Uvicorn
uvicorn==0.31.1 # Uvicorn
iniconfig==2.0.0 # pytest