mirror of
https://github.com/skidoodle/spotify-ws.git
synced 2025-02-15 06:09:14 +01:00
improved function
This commit is contained in:
parent
cdec626875
commit
a12ebd132f
8 changed files with 177 additions and 138 deletions
|
@ -1,13 +1,14 @@
|
|||
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 alpine:latest
|
||||
RUN apk --no-cache add ca-certificates
|
||||
WORKDIR /root/
|
||||
FROM gcr.io/distroless/static:nonroot
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/spotify-ws .
|
||||
EXPOSE 3000
|
||||
USER nonroot:nonroot
|
||||
CMD ["./spotify-ws"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue