From dc23ef35263eaa43eeb9e1e625aa04ec8ecaa8e8 Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 18 Jul 2022 01:07:06 +0530 Subject: Site moved to ghost --- Dockerfile | 19 ------------------- fly.toml | 10 +++++++--- 2 files changed, 7 insertions(+), 22 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 03e9a17e..00000000 --- a/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM zenika/alpine-chrome:100-with-node - -USER root - -RUN apk add --no-cache msttcorefonts-installer fontconfig -RUN update-ms-fonts -RUN fc-cache -f && rm -rf /var/cache/* - -USER chrome - -COPY package*.json ./ - -RUN npm install - -COPY . . -ENV PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium-browser' - -EXPOSE 8080 -CMD [ "node", "server.js" ] diff --git a/fly.toml b/fly.toml index d0641f69..923c893a 100644 --- a/fly.toml +++ b/fly.toml @@ -7,19 +7,23 @@ kill_timeout = 5 processes = [] [build] - # builder = "heroku/buildpacks:20" - dockerfile = "Dockerfile" + image = "ghost:5-alpine" + # dockerfile = "Dockerfile" [env] PORT = "8080" +[mounts] +source = "thatcomputerscientist_data" +destination = "/var/lib/ghost/content" + [experimental] allowed_public_ports = [] auto_rollback = true [[services]] http_checks = [] - internal_port = 8080 + internal_port = 2368 processes = ["app"] protocol = "tcp" script_checks = [] -- cgit v1.2.3