mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-15 11:52: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user