-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.template
41 lines (33 loc) · 963 Bytes
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM amazoncorretto:21
# Set environment variables (can be overridden at runtime)
# Features
ENV KLIP_ENABLED=true
ENV KLIP_CANVAS_ENABLED=true
ENV KLIP_ADMIN_ENABLED=false
ENV KLIP_ADMIN_API_KEY=""
ENV KLIP_LOG_LEVEL=INFO
ENV KLIP_HTTP_PORT=8080
ENV KLIP_AWS_REGION=us-west-2
ENV KLIP_S3_BUCKET=cdn.klip.com
ENV KLIP_CACHE_ENABLED=true
ENV KLIP_CACHE_BUCKET=cdn.klip.com
ENV KLIP_CACHE_FOLDER=_cache/
ENV KLIP_RULES=""
ENV KLIP_RULES_FILE=""
ENV KLIP_CANVAS_RULES=""
ENV KLIP_CANVAS_RULES_FILE=""
# GraphicsMagick config
ENV KLIP_GM_TIMEOUT_SECONDS=30
ENV KLIP_GM_MEMORY_LIMIT=128MB
ENV KLIP_GM_MAP_LIMIT=256MB
ENV KLIP_GM_DISK_LIMIT=512GB
# defaults to available processors if not set
ENV KLIP_GM_POOL_SIZE=""
# Create app directory and set working directory
WORKDIR /app
# Copy the JAR file built from Gradle
COPY build/libs/klip-all.jar /app/klip-all.jar
# Expose the HTTP port
EXPOSE 8080
# Start the application
CMD ["java", "-jar", "klip-all.jar"]