This repository was archived by the owner on Aug 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (37 loc) · 1.45 KB
/
Dockerfile
File metadata and controls
46 lines (37 loc) · 1.45 KB
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
FROM alpine:3.13
ARG VERSION=6.0.1
ENV TAIGA_HOST=taiga.lan \
TAIGA_PORT=80 \
TAIGA_SECRET=secret \
TAIGA_SCHEME=http \
POSTGRES_HOST=db \
POSTGRES_DB=taiga \
POSTGRES_USER=postgres \
POSTGRES_PASSWORD=password \
RABBIT_HOST=rabbit \
RABBIT_PORT=5672 \
RABBIT_USER=taiga \
RABBIT_PASSWORD=password \
RABBIT_VHOST=taiga \
DJANGO_SETTINGS_MODULE=settings.config
WORKDIR /srv/taiga
RUN apk --no-cache add python3 py3-pip gettext postgresql-dev libxslt-dev libxml2-dev libjpeg-turbo-dev zeromq-dev libffi-dev nginx \
&& apk add --no-cache --virtual .build-dependencies git g++ musl-dev linux-headers python3-dev binutils-doc autoconf flex bison zlib-dev libjpeg-turbo-dev freetype-dev ncurses-dev gdbm-dev \
&& mkdir logs \
&& git clone --depth=1 -b $VERSION https://github.com/taigaio/taiga-back.git back && cd back \
&& python3 -m venv .venv --prompt taiga-back && source .venv/bin/activate \
&& pip3 install --upgrade pip wheel \
&& pip3 install --no-cache-dir -r requirements.txt \
&& rm -rf /root/.cache \
&& apk del .build-dependencies \
&& rm /srv/taiga/back/settings/config.py.dev.example \
&& rm /srv/taiga/back/settings/config.py.prod.example \
&& rm /etc/nginx/conf.d/default.conf
EXPOSE 80
WORKDIR /srv/taiga/back
COPY config.py /tmp/taiga-conf/
COPY nginx.conf /etc/nginx/conf.d/
COPY waitfordb.py /
COPY start.sh /
VOLUME ["/taiga-conf", "/taiga-media"]
CMD ["/start.sh"]