فهرست منبع

Corregida imagen para que funcione en k8s. misma que openshift

Celestino Rey 1 سال پیش
والد
کامیت
cf22dab93b
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 4 3
      Dockerfile.k8s
  2. 1 1
      K8S/Makefile

+ 4 - 3
Dockerfile.k8s

@@ -3,7 +3,7 @@
 # BUILDER        #
 ##################
 
-FROM python:3.11.4-slim-buster AS builder
+FROM python:3.11-slim AS builder
 
 # set work directory
 WORKDIR /app
@@ -31,7 +31,7 @@ RUN pip wheel --no-cache-dir --no-deps --wheel-dir /app/wheels -r requirements.t
 # FINAL          #
 ##################
 
-FROM python:3.11.4-slim-buster
+FROM python:3.11-slim
 
 # create the appropriate directories
 ENV APP_HOME=/app
@@ -40,7 +40,8 @@ RUN mkdir -p $APP_HOME
 WORKDIR $APP_HOME
 
 # install system dependencies
-RUN apt-get update && apt-get install -y sqlite3 netcat vim procps curl jq libpango-1.0-0 libpangocairo-1.0-0 libcairo2
+RUN apt-get update && apt-get install nginx netcat-openbsd curl vim jq rsync libpango-1.0-0 libpangocairo-1.0-0 libcairo2 -y
+
 COPY --from=builder /app/wheels /wheels
 COPY --from=builder /app/requirements.txt .
 

+ 1 - 1
K8S/Makefile

@@ -1,6 +1,6 @@
 export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
 export REGISTRY=registry.reymota.es
-export IMG_VERSION = 0.38
+export IMG_VERSION = 0.41
 export IMG_NGINX_VERSION = 1.2
 
 # limpia todo