File: Dockerfile

package info (click to toggle)
mtpolicyd 2.05-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 816 kB
  • sloc: perl: 6,501; sh: 188; makefile: 3
file content (26 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (3)
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
FROM perl:5.24.0
MAINTAINER  Markus Benning <ich@markusbenning.de>
ENV PERL_CARTON_PATH /usr/local/lib/carton

COPY ./cpanfile /mtpolicyd/cpanfile
WORKDIR /mtpolicyd

RUN cpanm --notest Carton \
  && carton install \
  && rm -rf ~/.cpanm

RUN cpanm --notest DBD::mysql \
  && rm -rf ~/.cpanm

RUN addgroup --system mtpolicyd \
  && adduser --system --home /mtpolicyd --no-create-home \
    --disabled-password --ingroup mtpolicyd mtpolicyd

COPY . /mtpolicyd
COPY ./etc/docker.conf /etc/mtpolicyd/mtpolicyd.conf

EXPOSE 12345

USER mtpolicyd

CMD [ "carton",  "exec", "perl", "-Mlib=./lib", "bin/mtpolicyd", "-f", "-c", "/etc/mtpolicyd/mtpolicyd.conf" ]