mirror of
https://github.com/skidoodle/spotify-ws
synced 2025-10-09 05:22:43 +02:00
15 lines
309 B
Docker
15 lines
309 B
Docker
FROM golang:alpine as builder
|
|
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
|
|
WORKDIR /app
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN go build -o spotify-ws .
|
|
|
|
FROM gcr.io/distroless/static:nonroot
|
|
WORKDIR /app
|
|
COPY --from=builder /app/spotify-ws .
|
|
EXPOSE 3000
|
|
USER nonroot:nonroot
|
|
CMD ["./spotify-ws"]
|