mirror of
https://github.com/Damillora/Shioriko.git
synced 2024-11-24 21:27:31 +00:00
17 lines
319 B
Docker
17 lines
319 B
Docker
FROM golang:1.16-alpine AS build
|
|
|
|
WORKDIR /go/src/shioriko
|
|
COPY . .
|
|
|
|
RUN go get -d -v ./...
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /shioriko
|
|
RUN mkdir -p /web && cp -r web/static web/template /web
|
|
|
|
FROM scratch AS runtime
|
|
|
|
WORKDIR /
|
|
COPY --from=build /shioriko /
|
|
COPY --from=build /web /web
|
|
|
|
ENTRYPOINT ["/shioriko"]
|