Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Docker/Dockerfile.app
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM python:3.12-slim
FROM python:3.12.12-bookworm

# Create non-root user
RUN addgroup --gid 1000 appgroup \
&& adduser --uid 1000 --gid 1000 --system --home /app appuser

# System dependencies
RUN apt-get update && apt-get install -y build-essential python3-dev libpq-dev
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*

# Install uv
Expand All @@ -25,8 +26,9 @@ ENV HOME=/app
# Switch to non-root user
USER appuser

RUN uv sync
EXPOSE 8000

COPY Docker/entrypoint.app.sh /entrypoint.app.sh
COPY Docker/entrypoint.worker-arq.sh /entrypoint.worker-arq.sh
COPY Docker/entrypoint.worker-monitor.sh /entrypoint.worker-monitor.sh
COPY Docker/entrypoint.worker-monitor.sh /entrypoint.worker-monitor.sh
3 changes: 2 additions & 1 deletion Docker/entrypoint.app.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e

exec uv run uvicorn main:app --host 0.0.0.0 --port 8000 --loop uvloop --workers 4 --proxy-headers --forwarded-allow-ips='*'
#tail -f /dev/null
exec uv run uvicorn main:app --host 0.0.0.0 --port 8000 --loop uvloop --workers 4 --proxy-headers --forwarded-allow-ips='*'
2 changes: 1 addition & 1 deletion app/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "devpush-app"
version = "0.1.0"
description = "Web app for devpush"
readme = "README.md"
requires-python = ">=3.13"
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.115.12",
"fastapi-cli>=0.0.7",
Expand Down
Loading