agora-token-server / Dockerfile
Midnightar's picture
Create Dockerfile
5793e28 verified
raw
history blame contribute delete
234 Bytes
FROM golang:1.21-alpine AS build
WORKDIR /app
RUN apk add --no-cache git
COPY . .
RUN go mod tidy && go build -o server main.go
FROM alpine:3.18
WORKDIR /app
COPY --from=build /app/server .
ENV PORT=7860
EXPOSE 7860
CMD ["./server"]