poezio/Dockerfile
Maxime “pep” Buquet fa2f6a62ed
Update urls to point to lab.louiz.org
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-14 15:19:11 +00:00

17 lines
824 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
# Dont ADD local files in order to keep layers at a minimal size
RUN git clone https://lab.louiz.org/poezio/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"]