1
0
mirror of https://github.com/Luzifer/tex-api.git synced 2024-09-19 09:32:56 +00:00
tex-api/Dockerfile

27 lines
583 B
Docker
Raw Normal View History

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