mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 16:42:15 +01:00
24 lines
552 B
Docker
24 lines
552 B
Docker
ARG DOCKER_REGISTRY
|
|
ARG DOCKER_REPOSITORY
|
|
ARG GOTENBERG_VERSION
|
|
|
|
FROM $DOCKER_REGISTRY/$DOCKER_REPOSITORY:$GOTENBERG_VERSION
|
|
|
|
USER root
|
|
|
|
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.9.1 /lambda-adapter /opt/extensions/lambda-adapter
|
|
|
|
# AWS.
|
|
ENV AWS_LWA_PORT=3000
|
|
ENV AWS_LWA_READINESS_CHECK_PATH=/health
|
|
ENV AWS_LWA_INVOKE_MODE=response_stream
|
|
|
|
# Gotenberg.
|
|
ENV API_PORT_FROM_ENV=AWS_LWA_PORT
|
|
ENV CHROMIUM_AUTO_START=true
|
|
ENV LIBREOFFICE_AUTO_START=true
|
|
ENV WEBHOOK_ENABLE_SYNC_MODE=true
|
|
ENV GOTENBERG_BUILD_DEBUG_DATA=false
|
|
|
|
USER gotenberg
|