1
0
Fork 0
mirror of https://github.com/Luzifer/share.git synced 2024-12-20 10:31:16 +00:00
share/Dockerfile
Knut Ahlers 9ac02053ff
Add dockerized version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-12-29 23:48:36 +01:00

16 lines
394 B
Docker

FROM golang:alpine
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
ADD . /go/src/github.com/Luzifer/share
WORKDIR /go/src/github.com/Luzifer/share
RUN set -ex \
&& apk add --update git ca-certificates \
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)" \
&& apk del --purge git
EXPOSE 3000
ENTRYPOINT ["/go/bin/share"]
CMD ["--"]