diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..77e9ac9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM golang:1.19-alpine + +COPY . /app +WORKDIR /app + +ENV APP_VERSION $(cat ./VERSION) +ENV GOMOD $(go list -m) + +RUN go mod tidy +RUN go build -o ./build/bbb-webrtc-recorder ./cmd/bbb-webrtc-recorder + +RUN ls -ahlt ./* + +RUN mv /app/build/bbb-webrtc-recorder /usr/local/bin/bbb-webrtc-recorder + +WORKDIR /usr/local/bin + +RUN rm -rf /app + +EXPOSE 8080 + +RUN ls -ahlt +CMD ["./bbb-webrtc-recorder"]