diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..c62f2b346 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:1.22 as base +WORKDIR /app +COPY go.mod . +RUN go mod download +COPY . . +RUN go build -o main . + +#Final Stage + +FROM gcr.io/distroless/base +COPY --from=base /app/main . +COPY --from=base /app/static ./static +EXPOSE 8080 +CMD ["./main"]