init ci deployment for homelab k3s
This commit is contained in:
parent
1a166d0176
commit
b509e6ac8a
5 changed files with 60 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||
RUN pip install -U pip && adduser --disabled-password --gecos '' app
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY . .
|
||||
USER app
|
||||
EXPOSE 8080
|
||||
CMD ["gunicorn","-w","2","-b","0.0.0.0:8080","app:app"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue