You've already forked Curso-lenguaje-python
Add prometheus_grafana test
This commit is contained in:
19
catch-all/05_infra_test/05_prometheus_grafana/Dockerfile
Normal file
19
catch-all/05_infra_test/05_prometheus_grafana/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
# Usar imagen de python 3.9 slim
|
||||
FROM python:3.9-slim
|
||||
|
||||
# Establece el directorio de trabajo
|
||||
WORKDIR /app
|
||||
|
||||
# Copia el archivo requirements.txt e instala las dependencias
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copia el código fuente a /app
|
||||
COPY app app
|
||||
|
||||
# Variables de entorno
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONPATH=/app
|
||||
|
||||
# Comando para ejecutar la aplicación
|
||||
CMD ["python", "app/main.py"]
|
||||
Reference in New Issue
Block a user