move static env to dockerfile
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -4,12 +4,17 @@ RUN apt-get update \
|
|||||||
curl ca-certificates iputils-ping \
|
curl ca-certificates iputils-ping \
|
||||||
python3-ldap python3-pip python3-ldap \
|
python3-ldap python3-pip python3-ldap \
|
||||||
libjpeg-dev libturbojpeg0-dev \
|
libjpeg-dev libturbojpeg0-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
&& apt-get clean
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
#necessary hack for cffi
|
#necessary hack for cffi
|
||||||
RUN pip3 install cffi
|
RUN pip3 install cffi
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
COPY inventory-app /app
|
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
ENV ENVIRONMENT_TYPE=PROD
|
||||||
|
|
||||||
WORKDIR /app
|
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
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@@ -23,10 +24,6 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: OIDC_USERS_NAMESPACE
|
- name: OIDC_USERS_NAMESPACE
|
||||||
value: "default"
|
value: "default"
|
||||||
- name: SLACK_VERIFICATION_TOKEN
|
|
||||||
value: "changeme"
|
|
||||||
- name: PYTHONUNBUFFERED
|
|
||||||
value: "1"
|
|
||||||
# Google test key
|
# Google test key
|
||||||
- name: RECAPTCHA_PUBLIC_KEY
|
- name: RECAPTCHA_PUBLIC_KEY
|
||||||
value: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
|
value: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
|
||||||
|
Reference in New Issue
Block a user