-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
57 lines (44 loc) · 1.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM python:3.10
# Setup Timezone
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ='Europe/Oslo'
RUN apt-get update && apt-get install -y tzdata git
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Global settings
ENV MIN_DAYS='1'
ENV MAX_DAYS='90'
ENV MIN_LABELS='0'
ENV MAX_LABELS='10'
ENV SECRET_KEY='SuperSecretKeyHere'
# FEIDE OAuth2
ENV FEIDE_REDIRECT_URI='https://<fqdn>/login/feide/callback'
ENV FEIDE_CLIENT_ID=''
ENV FEIDE_CLIENT_SECRET=''
# Label server (https://github.com/VaagenIM/EtikettServer)
ENV LABEL_SERVER='https://<fqdn-label>'
# Teams webhooks (comma separated)
ENV TEAMS_WEBHOOKS=''
ENV TEAMS_WEBHOOKS_DEVIATIONS=''
# Kiosk (Admin access without login) (FQDN)
ENV KIOSK_FQDN=''
# API token
ENV API_TOKEN=''
# Misc
ENV DEBUG='False'
ENV AUTO_UPDATE='True'
ENV WEB_CONCURRENCY='1'
RUN pip install -U pip && pip install setuptools wheel
RUN git clone https://github.com/sondregronas/FeideUtstyrbase && \
pip install -r /FeideUtstyrbase/requirements.txt && \
mkdir /app && \
cp -r /FeideUtstyrbase/BookingSystem/* /app
RUN echo \
"cd /FeideUtstyrbase && \
git pull && \
pip install -q -r requirements.txt && \
cp -r /FeideUtstyrbase/BookingSystem/* /app" > /usr/local/bin/auto-update.sh
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
EXPOSE 5000
WORKDIR /app
VOLUME /app/data
CMD ["sh", "/usr/local/bin/entrypoint.sh"]