summaryrefslogtreecommitdiffci
path: root/Dockerfile
blob: 20502c2c5b2e03fa7a571b096199166f673c8728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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" ]