3 changed files with 39 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||
FROM golang:1.25-alpine AS builder |
|||
|
|||
WORKDIR /build |
|||
|
|||
COPY . . |
|||
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o vk-turn-proxy ./server |
|||
|
|||
FROM alpine:3.23 |
|||
|
|||
RUN apk add --no-cache ca-certificates tzdata |
|||
|
|||
WORKDIR /app |
|||
|
|||
COPY docker-entrypoint.sh . |
|||
COPY --from=builder /build/vk-turn-proxy . |
|||
RUN chmod +x docker-entrypoint.sh |
|||
|
|||
EXPOSE 56000/udp |
|||
|
|||
ENTRYPOINT ["./docker-entrypoint.sh"] |
|||
@ -0,0 +1,6 @@ |
|||
#!/bin/sh |
|||
set -e |
|||
|
|||
CONNECT="${CONNECT_ADDR:?CONNECT_ADDR is required}" |
|||
|
|||
exec ./vk-turn-proxy -listen 0.0.0.0:56000 -connect "$CONNECT" |
|||
Loading…
Reference in new issue