forked from drawpile/Drawpile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 691 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 691 Bytes
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
## Common base
FROM alpine:3.9 as common
RUN apk add --no-cache qt5-qtbase qt5-qtbase-sqlite libmicrohttpd libbz2 libsodium
## Build container
FROM common as builder
RUN apk add qt5-qtbase-dev libmicrohttpd-dev libsodium-dev cmake make g++
WORKDIR /build/
COPY build-deps.sh /build/
RUN sh build-deps.sh
ARG version=master
RUN wget https://github.com/drawpile/Drawpile/archive/${version}.zip -O /build/drawpile.zip
COPY build.sh /build/
RUN sh build.sh
## Final deployment image
FROM common
COPY --from=builder /build/drawpile-srv /bin
COPY --from=builder /build/karchive*/build/bin/libKF5* /usr/lib/
RUN adduser -D drawpile
EXPOSE 27750
USER drawpile
ENTRYPOINT ["/bin/drawpile-srv"]