Skip to content

Commit

Permalink
fix: Add configs properly to final image
Browse files Browse the repository at this point in the history
* build: Add configs folder to store configs of adapters

* refactor: Add redirection config to configs folder
  • Loading branch information
mehmetumit committed Nov 5, 2023
1 parent 44bdaf3 commit a6acc63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ FROM scratch as final

COPY --from=builder /app/dexus .

COPY --from=builder /app/configs /configs

ENTRYPOINT [ "./dexus" ]
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
logger := stdlog.NewStdLog(debugLevel)
logger.Info(fmt.Sprintf("Version: %s | Commit: %s", Version, Commit))
cacher := memcache.NewMemCache(logger)
fPath := filepath.FromSlash("test_data/redirection.yaml")
fPath := filepath.FromSlash("configs/redirection.yaml")
redirectRepo, err := fileredirect.NewYamlRedirect(logger, fPath)
if err != nil {
os.Exit(1)
Expand Down
3 changes: 3 additions & 0 deletions configs/redirection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
redirections:
/abc : https://google.com
/xyz : https://github.com

0 comments on commit a6acc63

Please sign in to comment.