mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-23 00:22:19 +00:00
Remove unused deps in Dockerfile
This commit is contained in:
parent
e2e4a72e2a
commit
82969360a4
@ -1,6 +1,6 @@
|
|||||||
# Install dependencies then build ghostream
|
# Install dependencies then build ghostream
|
||||||
FROM golang:1.15-alpine AS build_base
|
FROM golang:1.15-alpine AS build_base
|
||||||
RUN apk add --no-cache build-base gcc
|
RUN apk add --no-cache gcc musl-dev
|
||||||
# libsrt is not yet packaged in community repository
|
# libsrt is not yet packaged in community repository
|
||||||
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing libsrt-dev
|
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing libsrt-dev
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
@ -11,7 +11,6 @@ RUN go generate && 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 --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing libsrt
|
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing libsrt
|
||||||
COPY --from=build_base /code/out/ghostream /app/ghostream
|
COPY --from=build_base /code/out/ghostream /app/ghostream
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -32,7 +32,7 @@ You can also launch the Docker image using,
|
|||||||
|
|
||||||
```
|
```
|
||||||
docker build . -t ghostream
|
docker build . -t ghostream
|
||||||
docker run -it --rm -p 8080:8080 -p 2112:2112 -p 9710:9710 ghostream
|
docker run -it --rm -p 2112:2112 -p 9710:9710 -p 8080:8080 -p 10000-10005:10000-10005/udp ghostream
|
||||||
```
|
```
|
||||||
|
|
||||||
## Streaming
|
## Streaming
|
||||||
|
Loading…
Reference in New Issue
Block a user