Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Do not copy data dir on build. Create data dir if needed on launch
Gabe Kangas67a3a36c98c3
diff --git a/build/release/Dockerfile-build b/build/release/Dockerfile-buildindex 4ad4cd228c..6c6587e6a3 100644--- a/build/release/Dockerfile-build+++ b/build/release/Dockerfile-build@@ -24,5 +24,5 @@ WORKDIR /appCOPY --from=build /build/owncast /app/owncastCOPY --from=build /build/webroot /app/webrootCOPY --from=build /build/static /app/static-COPY --from=build /build/data /app/data+RUN mkdir /app/dataCMD ["/app/owncast"]diff --git a/main.go b/main.goindex aea4390b7d..3a51fcd87f 100644--- a/main.go+++ b/main.go@@ -2,6 +2,7 @@ package mainimport ("flag"+ "os""strconv""time"@@ -56,6 +57,11 @@ func main() {}log.Infoln(config.GetReleaseString())+ // Create the data directory if needed+ if !utils.DoesFileExists("data") {+ os.Mkdir("./data", 0700)+ }+// Allows a user to restore a specific database backupif *restoreDatabaseFile != "" {databaseFile := config.DatabaseFilePath