1
0
Fork 0
mirror of https://github.com/Luzifer/tex-api.git synced 2024-11-08 16:20:04 +00:00
tex-api/Dockerfile
Knut Ahlers f867de4912
First version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-03-06 00:18:57 +01:00

21 lines
493 B
Docker

FROM golang
MAINTAINER Knut Ahlers <knut@ahlers.me>
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 install -y texlive-full \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 3000
VOLUME ["/store"]
ENTRYPOINT ["/go/bin/tex-api"]
CMD ["--"]