Files
2024-12-24 15:14:31 +01:00

23 lines
286 B
Docker

FROM golang AS build
WORKDIR /build
COPY go.mod ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o tbin .
FROM alpine
WORKDIR /app
COPY --from=build /build/tbin ./
COPY index.html ./
COPY favicon.png ./
EXPOSE 4242
EXPOSE 8080
ENTRYPOINT ["/app/tbin"]