-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (30 loc) · 836 Bytes
/
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
FROM python:3.8.12-alpine3.14
ENV STUART_VERSION=0.7
LABEL \
Name="stuart" \
Version="$STUART_VERSION" \
Summary="A Python wiki system." \
Description="A Python wiki system." \
maintaner="izrik <izrik@izrik.com>"
RUN mkdir -p /opt/stuart
WORKDIR /opt/stuart
COPY requirements.txt \
./
RUN apk add git bash libpq
RUN pip install --upgrade pip setuptools wheel
RUN apk add --virtual .build-deps gcc musl-dev libffi-dev postgresql-dev g++ && \
pip install gunicorn==20.1.0 \
psycopg2==2.8.6 \
-r requirements.txt && \
apk --purge del .build-deps
COPY stuart.py \
LICENSE \
README.md \
docker_start.sh \
./
COPY static static
COPY templates templates
EXPOSE 8080
ENV STUART_PORT=8080 \
STUART_HOST=0.0.0.0
CMD ["/opt/stuart/docker_start.sh"]