moved to python for garmin api and golang for everything else

This commit is contained in:
2025-08-26 10:29:42 -07:00
parent 8558ac3d41
commit 0a5076f7bb
7 changed files with 289 additions and 368 deletions

View File

@@ -0,0 +1,25 @@
# Builder stage
FROM python:3.12-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Final stage
FROM python:3.12-slim
WORKDIR /app
# Copy dependencies from builder stage
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY --from=builder /usr/local/bin /usr/local/bin
# Copy application code
COPY app.py .
# Add user for security
RUN groupadd -r appuser && \
useradd -r -g appuser appuser && \
chown -R appuser:appuser /app
USER appuser
EXPOSE 8081
CMD ["python", "app.py"]