Update the dev dockerfile and build dockerfile to fix #60

This commit is contained in:
Gabe Kangas
2020-07-14 17:42:06 -07:00
parent a7a9ae0984
commit 738570563e
4 changed files with 27 additions and 13 deletions

View File

@@ -4,6 +4,7 @@ RUN mkdir /app
ADD . /app
WORKDIR /app
RUN apk add --no-cache ffmpeg ffmpeg-libs
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o owncast .
RUN apk update && apk add --no-cache gcc build-base linux-headers
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o owncast .
WORKDIR /app
CMD ["/app/owncast"]