3 files changed, 10 insertions(+), 15 deletions(-)
A .build.yml
D .dockerignore
D Dockerfile
A .build.yml => .build.yml +10 -0
@@ 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
D .dockerignore => .dockerignore +0 -1
D Dockerfile => Dockerfile +0 -14
@@ 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", "-" ]