aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile19
-rw-r--r--fly.toml10
2 files changed, 7 insertions, 22 deletions
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 = []