Eliminar archivos y configuraciones obsoletas de Docker y scripts en el proyecto onedrive

This commit is contained in:
2025-12-07 11:45:58 -05:00
parent 950a1704ee
commit 24af1dff01
17 changed files with 60 additions and 112 deletions

26
engine/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
# Usar una imagen base más ligera y específica
FROM python:3.9-slim
# Establecer el directorio de trabajo
WORKDIR /app
# Instalar dependencias del sistema y limpiar caché en un solo RUN
RUN apt-get update && \
apt-get install -y --no-install-recommends git wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Clonar el repositorio
RUN git clone https://github.com/TheCaduceus/Microsoft-E5-Auto-Renewal /app
# Instalar dependencias de Python
RUN pip install --no-cache-dir -r requirements.txt
# Copiar el resto de los archivos
COPY . .
# Exponer el puerto
EXPOSE 8080
# Establecer el comando de entrada
CMD ["python", "main.py"]

2
engine/README.md Normal file
View File

@@ -0,0 +1,2 @@
## Actualizado, puede contener errores

16
engine/docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
---
services:
odengin:
build: .
container_name: odengin
environment:
- E5_CLIENT_ID=id
- E5_CLIENT_SECRET=secret
- E5_REFRESH_TOKEN=tokenit
- WEB_APP_PASSWORD=123
- E5_WEB_APP_PASSWORD=123
ports:
- 8089:8080
restart: unless-stopped
hostname: odengin
network_mode: bridge