summaryrefslogtreecommitdiff
path: root/images/paste/Dockerfile
blob: 460061d8d858b191a154e10f83b73b0c305736e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Currently uses edge instead of 3.5 because it needs
# the mongodb package only available on edge

FROM alpine:edge AS builder

RUN apk add --no-cache git python3 py3-pip nodejs nodejs-npm graphicsmagick
RUN git clone --single-branch --depth=1 --recursive https://github.com/ptpb/pb /app/pb

RUN cd /app/pb \
 && pip3 install --user -r requirements.txt

FROM server_runit-edge

RUN apk add --no-cache python3 uwsgi-python3 mongodb
COPY --from=builder /app/pb /app/pb
COPY --from=builder /root/.local /root/.local

ADD pb/config.yaml /root/.config/pb/config.yaml
ADD uwsgi/pb.ini /app/pb.ini

EXPOSE 80