diff --git a/Dockerfile b/Dockerfile index 64aee73..a49f60c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM alpine:latest WORKDIR /gothub COPY ./gothub . +COPY ./public/ ./public/ +COPY ./views/ ./views/ CMD ["/bin/sh", "-c", "./gothub"] EXPOSE 3000 - diff --git a/main.go b/main.go index 78642b9..f1cefea 100644 --- a/main.go +++ b/main.go @@ -36,7 +36,7 @@ func main() { app := fiber.New(fiber.Config{ Views: engine, - Prefork: true, + Prefork: false, AppName: "GotHub", // fucked up way to fix rate limits EnableTrustedProxyCheck: true,