-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.debian
More file actions
64 lines (54 loc) · 1.63 KB
/
Dockerfile.debian
File metadata and controls
64 lines (54 loc) · 1.63 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM debian:trixie
# Install required packages
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Supported environment variables for pogocache configuration
# Basic options
ENV POGOCACHE_HOST=0.0.0.0
# ENV POGOCACHE_PORT=
# ENV POGOCACHE_SOCKET=
# ENV POGOCACHE_VERBOSE=
# Additional options
# ENV POGOCACHE_THREADS=
# ENV POGOCACHE_MAXMEMORY=
# ENV POGOCACHE_EVICT=
# ENV POGOCACHE_PERSIST=
# ENV POGOCACHE_MAXCONNS=
# Security options
# ENV POGOCACHE_AUTH=
# ENV POGOCACHE_TLSPORT=
# ENV POGOCACHE_TLSCERT=
# ENV POGOCACHE_TLSKEY=
# ENV POGOCACHE_TLSCACERT=
# Advanced options
# ENV POGOCACHE_SHARDS=
# ENV POGOCACHE_BACKLOG=
# ENV POGOCACHE_QUEUESIZE=
# ENV POGOCACHE_REUSEPORT=
# ENV POGOCACHE_TCPNODELAY=
# ENV POGOCACHE_QUICKACK=
# ENV POGOCACHE_URING=
# ENV POGOCACHE_LOADFACTOR=
# ENV POGOCACHE_AUTOSWEEP=
# ENV POGOCACHE_KEYSIXPACK=
# ENV POGOCACHE_CAS=
# Copy the pogocache binaries
COPY pogocache-linux-amd64.tar.gz .
COPY pogocache-linux-arm64.tar.gz .
# Create platform-specific symlink
ARG TARGETARCH
RUN if [ "$TARGETARCH" = "amd64" ]; then \
rm -f pogocache-linux-arm64.tar.gz; \
tar -xzvf pogocache-linux-amd64.tar.gz; \
ln -s /app/pogocache-linux-amd64/pogocache /app/pogocache; \
elif [ "$TARGETARCH" = "arm64" ]; then \
rm -f pogocache-linux-amd64.tar.gz; \
tar -xzvf pogocache-linux-arm64.tar.gz; \
ln -s /app/pogocache-linux-arm64/pogocache /app/pogocache; \
fi
# Copy the entrypoint script
COPY entrypoint /app/entrypoint
RUN chmod +x /app/entrypoint
# Set the entrypoint
ENTRYPOINT ["/app/entrypoint"]