You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
373 B
20 lines
373 B
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"]
|
|
|