mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 08:32:16 +01:00
39 lines
1.2 KiB
Docker
39 lines
1.2 KiB
Docker
FROM golang:1.10-stretch
|
|
|
|
LABEL authors="Julien Neuhart <j.neuhart@thecodingmachine.com>"
|
|
|
|
# |--------------------------------------------------------------------------
|
|
# | Libraries
|
|
# |--------------------------------------------------------------------------
|
|
# |
|
|
# | Installs all required libraries.
|
|
# |
|
|
|
|
RUN echo "deb http://httpredir.debian.org/debian/ stretch main contrib non-free" > /etc/apt/sources.list &&\
|
|
apt-get update &&\
|
|
apt-get install -y xvfb wkhtmltopdf pdftk unoconv ttf-mscorefonts-installer &&\
|
|
ln -s /usr/bin/xvfb-run /usr/local/bin/xvfb-run &&\
|
|
ln -s /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf &&\
|
|
ln -s /usr/bin/pdftk /usr/local/bin/pdftk &&\
|
|
ln -s /usr/bin/unoconv /usr/local/bin/unoconv
|
|
|
|
# |--------------------------------------------------------------------------
|
|
# | Gotenberg
|
|
# |--------------------------------------------------------------------------
|
|
# |
|
|
# | All Gotenberg related stuff.
|
|
# |
|
|
|
|
WORKDIR /go/src/github.com/thecodingmachine/gotenberg
|
|
|
|
# Installs lint dependencies.
|
|
RUN go get -u gopkg.in/alecthomas/gometalinter.v2 &&\
|
|
gometalinter.v2 --install
|
|
|
|
# Copies our Go source.
|
|
COPY . .
|
|
|
|
# Installs project dependencies.
|
|
RUN go get -d -v ./...
|
|
|
|
ENTRYPOINT ["_ci/docker-entrypoint.sh"] |