mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 19:42:20 +00:00
Call pkger in docker build
This commit is contained in:
parent
7716898713
commit
c64506dc7c
@ -5,9 +5,9 @@ RUN git clone --depth 1 --branch v1.4.2 https://github.com/Haivision/srt && \
|
|||||||
cd srt && ./configure --enable-apps=OFF && make install && cd .. && rm -rf srt
|
cd srt && ./configure --enable-apps=OFF && make install && cd .. && rm -rf srt
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
COPY go.* ./
|
COPY go.* ./
|
||||||
RUN go mod download
|
RUN go mod download && go get github.com/markbates/pkger/cmd/pkger
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -o ./out/ghostream .
|
RUN go generate && go build -o ./out/ghostream .
|
||||||
|
|
||||||
# Production image
|
# Production image
|
||||||
FROM alpine:3.12
|
FROM alpine:3.12
|
||||||
|
Loading…
Reference in New Issue
Block a user