Add zimit-webapp/Dockerfile
This commit is contained in:
parent
344dc3f2ae
commit
a823a5f8c4
1 changed files with 23 additions and 0 deletions
23
zimit-webapp/Dockerfile
Normal file
23
zimit-webapp/Dockerfile
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# Dockerfile
|
||||||
|
FROM python:3.13-slim
|
||||||
|
|
||||||
|
# Installer le client Docker CLI uniquement
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends docker-cli && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Repertoire de travail
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copier les ressources
|
||||||
|
COPY app.py requirements.txt ./
|
||||||
|
COPY templates ./templates
|
||||||
|
|
||||||
|
# Installer les dependances
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
# Exposer le port Flask
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# Lancer le serveur
|
||||||
|
CMD ["python", "app.py"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue