automated terminal push

This commit is contained in:
lenape
2025-08-03 00:10:47 +00:00
parent abdf2e1156
commit 2923f2f15e
28 changed files with 2021 additions and 2613 deletions

View File

@@ -1,12 +1,21 @@
FROM python:3.10-slim
# Create a non-root user and group
RUN adduser --disabled-password --gecos '' myuser
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies as root (needed for system-wide install)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY app.py .
EXPOSE 8080
# Change to non-root user
USER myuser
# Expose port and start app
EXPOSE 8080
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]