-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 707 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (22 loc) · 707 Bytes
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
# Build stage
FROM rust:1.87.0-slim AS builder
WORKDIR /app
COPY . .
# Build the release binary
RUN cargo build --release
# Runtime stage
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy the built binary from the builder stage
COPY --from=builder /app/target/release/proxy ./proxy
# Expose the port your proxy listens on
ENV PORT=5063
EXPOSE 5063
# Traefik labels
LABEL traefik.enable=true
LABEL traefik.docker.network=proxy
LABEL traefik.http.routers.analyzerproxy-secure.entrypoints=websecure
LABEL traefik.http.routers.analyzerproxy-secure.rule="Host(`analyzerproxy.jaads.de`)"
# Run the binary
CMD ["./proxy"]