Dockerfile 467 Bytes
Newer Older
zauberstuhl's avatar
zauberstuhl committed
1
FROM golang:1.16
zauberstuhl's avatar
zauberstuhl committed
2 3 4 5

ADD . /go/src/build

WORKDIR /go/src/build
zauberstuhl's avatar
zauberstuhl committed
6
RUN go build -o unmappd
zauberstuhl's avatar
zauberstuhl committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

FROM debian:jessie

RUN apt-get update && apt-get install -y ca-certificates
RUN apt-get clean && apt-get autoclean

RUN adduser --disabled-password app

ADD . /home/app
COPY --from=0 /go/src/build/unmappd /home/app/unmappd
RUN chmod +x /home/app/unmappd

WORKDIR /home/app
RUN cp config.yml.example config.yml
RUN rm -rf vendor *.db

EXPOSE 8080

ENTRYPOINT ["/home/app/unmappd"]