Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d23c3eb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +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 + +ENV B2_KEY_ID="" +ENV B2_APPLICATION_KEY="" + +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 +COPY --from=build-stage /builddir/config/config.yaml /app/config.yaml + +ENTRYPOINT [ "/app/sayana-demo", "-c", "/app/config.yaml" ] |