Add stuff
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM golang:1.22 AS build-stage
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . /app
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /entrypoint
|
||||
|
||||
FROM gcr.io/distroless/static-debian11 AS release-stage
|
||||
WORKDIR /
|
||||
COPY --from=build-stage /entrypoint /entrypoint
|
||||
COPY --from=build-stage /app/assets /assets
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/entrypoint"]
|
||||
Reference in New Issue
Block a user