aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.build.yml10
-rw-r--r--.dockerignore1
-rw-r--r--Dockerfile14
3 files changed, 10 insertions, 15 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..abfcdf1
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,10 @@
+image: alpine/latest
+packages:
+ - rsync
+sources:
+ - https://git.sr.ht/~boringcactus/crabravebot
+secrets:
+ - b5cb9b2b-1461-4486-95e1-886451674a89
+tasks:
+ - deploy: |
+ ssh -o StrictHostKeyChecking=no services@boringcactus.com /var/www/crabravebot-test/update.sh
diff --git a/.dockerignore b/.dockerignore
deleted file mode 100644
index 5ceb386..0000000
--- a/.dockerignore
+++ /dev/null
@@ -1 +0,0 @@
-venv
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 5cd61bd..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,14 +0,0 @@
-FROM python:3.7-alpine
-
-RUN apk add --no-cache gcc libc-dev libffi-dev zlib-dev openssl-dev jpeg-dev ffmpeg freetype-dev
-
-WORKDIR /usr/src/app
-
-COPY requirements.txt ./
-RUN pip install --no-cache-dir -r requirements.txt
-
-COPY . .
-
-EXPOSE 8000
-
-CMD [ "gunicorn", "-b", "0.0.0.0:8000", "-w", "1", "bot:app", "--log-file", "-" ]