move static env to dockerfile
This commit is contained in:
13
Dockerfile
13
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
|
||||
&& 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"]
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user