-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (40 loc) · 1.36 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
FROM ubuntu:20.04
MAINTAINER Benjamin Borbe <[email protected]>
ARG VERSION
RUN set -x \
&& DEBIAN_FRONTEND=noninteractive apt-get update --quiet \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade --quiet --yes \
&& DEBIAN_FRONTEND=noninteractive apt-get install --quiet --yes --no-install-recommends \
apt-transport-https \
build-essential \
ca-certificates \
curl \
gettext \
git \
libffi-dev \
libldap2-dev \
libpq-dev \
libsasl2-dev \
libssl-dev \
postgresql \
postgresql-contrib \
python3.9 \
python3.9-dev \
python3.9-distutils \
&& DEBIAN_FRONTEND=noninteractive apt-get autoremove --yes \
&& DEBIAN_FRONTEND=noninteractive apt-get clean
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
RUN curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py
RUN git clone -b ${VERSION} --single-branch --depth 1 https://github.com/seibert-media/teamvault.git /teamvault
ENV HOME /teamvault
WORKDIR /teamvault
RUN pip install -e .
COPY files/teamvault.cfg /etc/teamvault.cfg.template
COPY files/teamvault_ldap.cfg /etc/teamvault_ldap.cfg.template
COPY files/teamvault_email.cfg /etc/teamvault_email.cfg.template
ENV PYTHONPATH /teamvault
RUN teamvault setup
EXPOSE 8000
COPY files/entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["teamvault","run","--bind=:8000"]