se agregan archivos para Docker
This commit is contained in:
1 parent
1356646abf
commit
da23e99690
3 files changed
+37
No files matched your search
@@ -0,0 +1,8 @@
|
|||||||
|
validar-venv/
|
||||||
|
__pycache__/
|
||||||
|
logs/
|
||||||
|
.git/
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
.DS_Store
|
||||||
|
test/
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
ENV PYTHONUNBUFFERED=1 \
|
||||||
|
TZ=America/Lima
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends tzdata \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY main.py constants.py logger_utilities.py sunat_manager.py hana_manager.py sapb1_manager.py scheduler.json empresas.json ./
|
||||||
|
|
||||||
|
CMD ["python", "main.py"]
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
services:
|
||||||
|
validador:
|
||||||
|
build: .
|
||||||
|
container_name: validador_documentos
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- TZ=America/Lima
|
||||||
|
volumes:
|
||||||
|
- ./.env:/app/.env:ro
|
||||||
|
- ./scheduler.json:/app/scheduler.json:ro
|
||||||
|
- ./empresas.json:/app/empresas.json:ro
|
||||||
|
- ./logs:/app/logs
|
||||||
Reference in new issue
Block a user