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

Update Dockerfile

This commit is contained in:
Knut Ahlers 2025-01-30 17:54:56 +01:00
parent 38ea33f24a
commit 067dad5d9a
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -1,17 +1,20 @@
FROM golang:alpine as builder
FROM golang:alpine AS builder
COPY . /go/src/github.com/Luzifer/webtts
WORKDIR /go/src/github.com/Luzifer/webtts
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
-mod=readonly \
-modcacherw \
-trimpath
FROM alpine:latest
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
LABEL maintainer="Knut Ahlers <knut@ahlers.me>"
RUN set -ex \
&& apk --no-cache add \