From 21165c8c773b88ce3e1de1fcbfeb5898e33d893e Mon Sep 17 00:00:00 2001 From: Midou36O Date: Wed, 30 Nov 2022 14:43:44 +0100 Subject: [PATCH] Docker + CI should both work now --- Dockerfile | 3 ++- main.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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,