mirror of
https://github.com/Luzifer/webtts.git
synced 2025-03-14 17:17:48 +00:00
Update Dockerfile
This commit is contained in:
parent
38ea33f24a
commit
067dad5d9a
1 changed files with 8 additions and 5 deletions
13
Dockerfile
13
Dockerfile
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue