using (again) Golang binaries from official Docker image instead of standard install without checkum + added a TODO for healtheck

This commit is contained in:
Julien Neuhart
2019-07-23 14:25:31 +02:00
parent 7bfbda4490
commit 0d827e490e
3 changed files with 7 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
GOLANG_VERSION=1.12.7
GOLANG_VERSION=1.12
VERSION=snapshot
DOCKER_USER=
DOCKER_PASSWORD=

View File

@@ -1,7 +1,9 @@
FROM thecodingmachine/gotenberg:base
ARG GOLANG_VERSION
FROM golang:${GOLANG_VERSION}-stretch as golang
FROM thecodingmachine/gotenberg:base
# |--------------------------------------------------------------------------
# | Common libraries
# |--------------------------------------------------------------------------
@@ -25,9 +27,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# | Installs Golang.
# |
RUN wget https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz &&\
tar -xvf go${GOLANG_VERSION}.linux-amd64.tar.gz &&\
mv go /usr/local
COPY --from=golang /usr/local/go /usr/local/go
ENV GOPATH /gotenberg/go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

View File

@@ -31,6 +31,7 @@ func pingHandler(c echo.Context) error {
if err := ctx.ProcessesHealthcheck(); err != nil {
return xerror.New(op, err)
}
// TODO return processes info
return nil
}