Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d2010e7352 | |||
| 8d85b669ef | |||
| ef50b550c7 | |||
| 80373528ec | |||
|
|
5a6051f1d6 | ||
| 9713aa8507 | |||
| fd9dbc048c | |||
| d3d9c86ac8 | |||
| 83e5c66807 | |||
|
|
88b10b47d7 | ||
|
|
2e23de4e9d | ||
| 3fb1755089 | |||
| a050e31bfa | |||
|
|
70401fd0de | ||
|
|
39ceb056f1 | ||
|
|
457b0a234b | ||
|
|
ae44f0e47b | ||
|
|
0cdc7fe629 | ||
|
|
1e705cb627 | ||
| 35040f3c54 | |||
| 63abb64b4f | |||
| 730b57e8e8 | |||
| 3bb5bb6739 | |||
| a3da4ff7f0 | |||
| e11ddc277a | |||
|
|
c0c4c31815 | ||
|
|
49199bd776 |
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -7,6 +7,7 @@ on:
|
||||
- master
|
||||
paths-ignore:
|
||||
- "**/.gitignore"
|
||||
- "**/.renovate.json"
|
||||
- "**/.vscode/**"
|
||||
- "**/README.md"
|
||||
- "**/CHANGELOG.md"
|
||||
|
||||
16
Dockerfile
16
Dockerfile
@@ -1,5 +1,8 @@
|
||||
FROM python:3.12-slim
|
||||
ARG VERSION=unkown
|
||||
FROM python:3.13-slim
|
||||
ARG VERSION=unknown
|
||||
|
||||
# Create a non-root user
|
||||
RUN useradd appuser
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
@@ -11,15 +14,20 @@ ENV VERSION=${VERSION}
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
||||
RUN pip install 'uvicorn[standard]'
|
||||
|
||||
ENV ENV=DEV
|
||||
|
||||
# Switch to non-root user
|
||||
USER appuser
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
||||
# Install curl
|
||||
RUN apt-get update && apt-get install -y curl && apt-get clean
|
||||
USER root
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean
|
||||
|
||||
# Switch back to non-root user for healthcheck
|
||||
USER appuser
|
||||
HEALTHCHECK --interval=30s --timeout=10s --retries=5 \
|
||||
CMD curl --fail http://localhost:8000/openapi.json || exit 1
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
certifi==2024.7.4 # Testing
|
||||
certifi==2024.12.14 # Testing
|
||||
iniconfig==2.0.0 # PyTest Testing
|
||||
packaging==23.2 # PyTest Testing
|
||||
pluggy==1.3.0 # PyTest Testing
|
||||
pytest==7.4.4 # PyTest Testing
|
||||
packaging==24.2 # PyTest Testing
|
||||
pluggy==1.5.0 # PyTest Testing
|
||||
pytest==8.3.4 # PyTest Testing
|
||||
|
||||
click==8.1.7 # Uvicorn
|
||||
click==8.1.8 # Uvicorn
|
||||
httptools==0.6.4 # Uvicorn
|
||||
pyyaml==6.0.2 # Uvicorn
|
||||
uvicorn==0.27.0.post1 # Uvicorn
|
||||
uvloop==0.19.0 # Uvicorn
|
||||
watchfiles==0.21.0 # Uvicorn
|
||||
websockets==12.0 # Uvicorn
|
||||
uvicorn==0.34.0 # Uvicorn
|
||||
uvloop==0.21.0 # Uvicorn
|
||||
watchfiles==1.0.4 # Uvicorn
|
||||
websockets==14.1 # Uvicorn
|
||||
|
||||
creyPY==1.3.0 # My own package
|
||||
creyPY[postgres]==3.0.0 # My own package
|
||||
|
||||
Reference in New Issue
Block a user