From 304db777bae2fcd63c4175bd090d848dc1f92482 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Tue, 2 Jul 2024 15:59:16 +0200 Subject: [PATCH] =?UTF-8?q?Arreglo=20Dockerfile=20para=20que=20solo=20copi?= =?UTF-8?q?e=20el=20directorio=20de=20la=20aplicaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LyricsPy/K8S/lyrics-deployment.yaml | 2 +- LyricsPy/servicios/Dockerfile | 3 ++- LyricsPy/servicios/creaImagen.sh | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/LyricsPy/K8S/lyrics-deployment.yaml b/LyricsPy/K8S/lyrics-deployment.yaml index e39831f..dd731c0 100644 --- a/LyricsPy/K8S/lyrics-deployment.yaml +++ b/LyricsPy/K8S/lyrics-deployment.yaml @@ -36,7 +36,7 @@ spec: - --bind - 0.0.0.0:5000 - lyrics:create_app() - image: creylopez/lyrics:5.0 + image: creylopez/lyrics:5.1 name: lyrics ports: - containerPort: 5000 diff --git a/LyricsPy/servicios/Dockerfile b/LyricsPy/servicios/Dockerfile index e3d73ed..b4d425d 100644 --- a/LyricsPy/servicios/Dockerfile +++ b/LyricsPy/servicios/Dockerfile @@ -14,7 +14,8 @@ RUN apt-get update && apt-get install -y sqlite3 COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt -COPY . . +COPY lyrics . +COPY entrypoint.sh . # CMD [ "python3", "-m" , "flask", "--app", "padel", "run", "--host=0.0.0.0"] #CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"] diff --git a/LyricsPy/servicios/creaImagen.sh b/LyricsPy/servicios/creaImagen.sh index a50c2a2..7ec110e 100644 --- a/LyricsPy/servicios/creaImagen.sh +++ b/LyricsPy/servicios/creaImagen.sh @@ -1,3 +1,3 @@ -docker build --no-cache -t creylopez/lyrics:5.0 . -docker push creylopez/lyrics:5.0 +docker build --no-cache -t creylopez/lyrics:5.1 . +docker push creylopez/lyrics:5.1