Padded bunch of project data
This commit is contained in:
parent
65972f37cc
commit
0044017df8
18 changed files with 1162 additions and 0 deletions
23
steam-gift-manager/Dockerfile
Normal file
23
steam-gift-manager/Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
FROM python:3.10-slim
|
||||
|
||||
# Shell explizit setzen
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
# Datenbankordner erstellen und Berechtigungen setzen
|
||||
RUN mkdir -p /app/data && chmod -R a+rwX /app/data
|
||||
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
|
||||
RUN groupadd -g $GID appuser && useradd -u $UID -g $GID -m appuser && chown -R appuser:appuser /app
|
||||
|
||||
USER appuser
|
||||
|
||||
EXPOSE 5000
|
||||
CMD ["python", "app.py"]
|
Loading…
Add table
Add a link
Reference in a new issue