Browse Source

Arreglo Dockerfile para que solo copie el directorio de la aplicación

politica
Celestino Rey 1 year ago
parent
commit
304db777ba
3 changed files with 5 additions and 4 deletions
  1. +1
    -1
      LyricsPy/K8S/lyrics-deployment.yaml
  2. +2
    -1
      LyricsPy/servicios/Dockerfile
  3. +2
    -2
      LyricsPy/servicios/creaImagen.sh

+ 1
- 1
LyricsPy/K8S/lyrics-deployment.yaml View File

@ -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


+ 2
- 1
LyricsPy/servicios/Dockerfile View File

@ -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"]


+ 2
- 2
LyricsPy/servicios/creaImagen.sh View File

@ -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

Loading…
Cancel
Save