1
0
Fork 0
mirror of https://github.com/Luzifer/webtts.git synced 2025-03-15 01:27:47 +00:00
webtts/Dockerfile

31 lines
545 B
Text
Raw Normal View History

2025-01-30 17:54:56 +01:00
FROM golang:alpine AS builder
2025-01-30 17:54:56 +01:00
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)" \
2025-01-30 17:54:56 +01:00
-mod=readonly \
-modcacherw \
-trimpath
FROM alpine:latest
2025-01-30 17:54:56 +01:00
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: