2017-03-05 17:26:04 +00:00
|
|
|
FROM golang
|
|
|
|
|
|
|
|
MAINTAINER Knut Ahlers <knut@ahlers.me>
|
|
|
|
|
2017-03-05 22:19:43 +00:00
|
|
|
RUN set -ex \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y texlive-full \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2017-03-05 17:26:04 +00:00
|
|
|
ADD . /go/src/github.com/Luzifer/tex-api
|
|
|
|
WORKDIR /go/src/github.com/Luzifer/tex-api
|
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y git ca-certificates \
|
|
|
|
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)" \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
2017-03-05 22:19:43 +00:00
|
|
|
VOLUME ["/storage"]
|
2017-03-05 17:26:04 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/go/bin/tex-api"]
|
|
|
|
CMD ["--"]
|