Add Dockerfile

This commit is contained in:
Dave Gallant
2022-08-21 02:30:43 +00:00
parent 269b394d3e
commit 9605d395f4
6 changed files with 91 additions and 0 deletions

2
backend/.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
.git
.github

View File

@@ -90,6 +90,7 @@ func (a *App) listTopics(w http.ResponseWriter, r *http.Request) {
func (a *App) refreshDeals() {
topics := a.getDeals(9, 1, 10)
// only drop deals if a timer has been met
log.Debug().Msg("Dropping deals")
a.DB.DropTable(&Topic{})
log.Debug().Msg("Refreshing the deals")