mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 13:52:19 +00:00
Package required libs in docker
This commit is contained in:
parent
ac1e9fdc88
commit
7253ab3b49
@ -7,13 +7,15 @@ WORKDIR /code
|
|||||||
COPY go.* ./
|
COPY go.* ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -ldflags '-extldflags "-static"' -o ./out/ghostream .
|
RUN go build -o ./out/ghostream .
|
||||||
|
|
||||||
# Production image
|
# Production image
|
||||||
FROM alpine:3.12
|
FROM alpine:3.12
|
||||||
RUN apk add ca-certificates
|
RUN apk add ca-certificates libressl libstdc++ libgcc
|
||||||
COPY --from=build_base /code/out/ghostream /app/ghostream
|
COPY --from=build_base /code/out/ghostream /app/ghostream
|
||||||
COPY --from=build_base /code/web/static /app/web/static
|
COPY --from=build_base /code/web/static /app/web/static
|
||||||
COPY --from=build_base /code/web/template /app/web/template
|
COPY --from=build_base /code/web/template /app/web/template
|
||||||
|
COPY --from=build_base /usr/local/lib64/libsrt.so.1 /lib/libsrt.so.1
|
||||||
|
WORKDIR /app
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD ["/app/ghostream"]
|
CMD ["/app/ghostream"]
|
||||||
|
Loading…
Reference in New Issue
Block a user