mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-11 18:02:14 +01:00
using (again) Golang binaries from official Docker image instead of standard install without checkum + added a TODO for healtheck
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,4 +1,4 @@
|
||||
GOLANG_VERSION=1.12.7
|
||||
GOLANG_VERSION=1.12
|
||||
VERSION=snapshot
|
||||
DOCKER_USER=
|
||||
DOCKER_PASSWORD=
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user