Skip to content

Commit

Permalink
updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ortuman committed Jul 6, 2018
1 parent eae12ee commit 21b740d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

FROM golang:1.10 as buildimage

LABEL org.label-schema.version=latest
Expand All @@ -9,9 +8,6 @@ LABEL maintainer="Miguel Ángel Ortuño <ortuman@protonmail.com>"

WORKDIR /jackal

RUN apt-get update
RUN apt-get install -y --no-install-recommends libidn11-dev

RUN curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep
RUN chmod +x $GOPATH/bin/dep
RUN go get -d github.com/ortuman/jackal
Expand All @@ -23,9 +19,7 @@ RUN export GOARCH=amd64
RUN go build github.com/ortuman/jackal

FROM debian:stretch-slim
RUN apt-get update
RUN apt-get install -y --no-install-recommends libidn11-dev
COPY --from=buildimage /jackal/jackal /
ADD docker.jackal.yml /etc/jackal/jackal.yml
EXPOSE 5222
CMD ["./jackal"]
CMD ["./jackal"]

0 comments on commit 21b740d

Please sign in to comment.