diff options
author | System administrator | 2017-05-29 13:26:10 +0200 |
---|---|---|
committer | System administrator | 2017-05-29 13:26:10 +0200 |
commit | bc5c44dd049bad3b007be48b3f8d90886d63c105 (patch) | |
tree | a381d989db2295f228f9bc95a774f0cc9aef4c40 /images/paste/Dockerfile | |
download | server-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.gz server-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.xz server-bc5c44dd049bad3b007be48b3f8d90886d63c105.zip |
Initial commit
Diffstat (limited to 'images/paste/Dockerfile')
-rw-r--r-- | images/paste/Dockerfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/images/paste/Dockerfile b/images/paste/Dockerfile new file mode 100644 index 0000000..9eedd40 --- /dev/null +++ b/images/paste/Dockerfile @@ -0,0 +1,24 @@ +# 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 \ + && npm install -g grunt-cli \ + && npm install && (cd node_modules/pbs; npm install) \ + && grunt + +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 |