Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..20502c2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:1.24.5-alpine3.22 AS build-stage + +WORKDIR /builddir +COPY . . +RUN go build -o sayana-demo . + +FROM alpine:3.22.1 AS runtime-stage + +WORKDIR /app +COPY --from=build-stage /builddir/sayana-demo /app/sayana-demo +COPY --from=build-stage /builddir/static /app/static +COPY --from=build-stage /builddir/views /app/views + +ENTRYPOINT [ "/app/sayana-demo" ] |