1
0
Fork 0
mirror of https://github.com/Luzifer/webtts.git synced 2025-03-14 17:17:48 +00:00
webtts/Dockerfile
2025-01-30 17:54:56 +01:00

30 lines
545 B
Docker

FROM golang:alpine AS builder
COPY . /src/webtts
WORKDIR /src/webtts
RUN set -ex \
&& apk add --update git \
&& go install \
-ldflags "-X main.version=$(git describe --tags --always || echo dev)" \
-mod=readonly \
-modcacherw \
-trimpath
FROM alpine:latest
LABEL maintainer="Knut Ahlers <knut@ahlers.me>"
RUN set -ex \
&& apk --no-cache add \
ca-certificates
COPY --from=builder /go/bin/webtts /usr/local/bin/webtts
EXPOSE 3000
ENTRYPOINT ["/usr/local/bin/webtts"]
CMD ["--"]
# vim: set ft=Dockerfile: