[Enhancement] Improve Dockerfile permissions (#157)

* Updated dockerfile

* added a healthcheck
This commit is contained in:
Kieran
2024-04-01 18:56:03 -07:00
committed by GitHub
parent 2f9abe86b4
commit f9c2f7b8f2
4 changed files with 30 additions and 16 deletions
@@ -0,0 +1,9 @@
defmodule PinchflatWeb.HealthController do
use PinchflatWeb, :controller
def check(conn, _params) do
conn
|> put_status(:ok)
|> json(%{status: "ok"})
end
end
+7
View File
@@ -47,6 +47,13 @@ defmodule PinchflatWeb.Router do
get "/media/:uuid/stream", MediaItems.MediaItemController, :stream
end
# No auth or CSRF protection for the health check endpoint
scope "/", PinchflatWeb do
pipe_through :api
get "/healthcheck", HealthController, :check
end
scope "/dev" do
pipe_through :browser