File: Dockerfile

package info (click to toggle)
poezio 0.12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,444 kB
  • sloc: python: 20,567; ansic: 329; makefile: 194; xml: 157; sh: 73
file content (17 lines) | stat: -rw-r--r-- 815 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"]