diff --git a/Dockerfile b/Dockerfile index 8aab025..b04cf2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,17 @@ RUN apt-get update \ curl ca-certificates iputils-ping \ python3-ldap python3-pip python3-ldap \ libjpeg-dev libturbojpeg0-dev \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean -COPY requirements.txt ./ + && rm -rf /var/lib/apt/lists/* + + COPY requirements.txt ./ #necessary hack for cffi RUN pip3 install cffi RUN pip3 install -r requirements.txt -COPY inventory-app /app + +ENV PYTHONUNBUFFERED=1 +ENV ENVIRONMENT_TYPE=PROD + WORKDIR /app -ENTRYPOINT /app/main.py +COPY inventory-app . + +ENTRYPOINT ["python3", "/app/main.py"] diff --git a/deployment.yaml b/deployment.yaml index 35ed688..4dab086 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -1,3 +1,4 @@ +# This is unmaintained. See git.k-space.ee/k-space/kube//hackerspace/inventory.yaml --- apiVersion: apps/v1 kind: Deployment @@ -23,10 +24,6 @@ spec: env: - name: OIDC_USERS_NAMESPACE value: "default" - - name: SLACK_VERIFICATION_TOKEN - value: "changeme" - - name: PYTHONUNBUFFERED - value: "1" # Google test key - name: RECAPTCHA_PUBLIC_KEY value: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI