summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-10-15 15:52:10 +0200
committermathieui <mathieui@mathieui.net>2016-10-15 15:52:10 +0200
commitce5c1a1fbb0aa9ec93eb714e71e3913ab41e34b9 (patch)
tree63a06eecb7107e03d11d74332fc004a9ff650bbb /Dockerfile
parent7b79673e47b1a718bd82ba5815dc7c158814408a (diff)
downloadpoezio-ce5c1a1fbb0aa9ec93eb714e71e3913ab41e34b9.tar.gz
poezio-ce5c1a1fbb0aa9ec93eb714e71e3913ab41e34b9.tar.bz2
poezio-ce5c1a1fbb0aa9ec93eb714e71e3913ab41e34b9.tar.xz
poezio-ce5c1a1fbb0aa9ec93eb714e71e3913ab41e34b9.zip
Add Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..0283483f
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM alpine:latest
+MAINTAINER Mathieu Pasquet <mathieui@mathieui.net>
+RUN apk add --update build-base git python3 python3-dev libidn-dev && python3 -m ensurepip && pip3 install --upgrade pip && pip3 install cython pyasn1 pyasn1-modules
+WORKDIR /tmp/
+ARG version=HEAD
+# Don’t ADD local files in order to keep layers at a minimal size
+RUN git clone https://git.poez.io/poezio.git poezio-git-dir && \
+ cd poezio-git-dir && \
+ git archive --prefix="poezio-archive-${version}/" -o /tmp/poezio-archive.tar "${version}" && \
+ cd /tmp/ && tar xvf poezio-archive.tar && \
+ cd "poezio-archive-${version}" && \
+ python3 setup.py install && \
+ cd .. && rm -rf /tmp/poezio-* ~/.cache ~/.pip
+RUN adduser -D poezio-user
+USER poezio-user
+WORKDIR /home/poezio-user/
+ENTRYPOINT ["poezio"]