From 87350cba1a05951b6bc9233d6fab0831a6922624 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 18 Nov 2022 09:50:06 +0100 Subject: [PATCH] Moved dockerfile --- kdb-bot/docker | 2 +- kdb-bot/dockerfile | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 kdb-bot/dockerfile diff --git a/kdb-bot/docker b/kdb-bot/docker index b3d5e9fe..48c26839 160000 --- a/kdb-bot/docker +++ b/kdb-bot/docker @@ -1 +1 @@ -Subproject commit b3d5e9feef881960c2e65e6661b36123b4d6fce5 +Subproject commit 48c2683965611c9a96ebbb908f8dcb4d0d7d71f2 diff --git a/kdb-bot/dockerfile b/kdb-bot/dockerfile new file mode 100644 index 00000000..fb342fd2 --- /dev/null +++ b/kdb-bot/dockerfile @@ -0,0 +1,17 @@ +# syntax=docker/dockerfile:1 +FROM python:3.10.4-alpine + +WORKDIR /app +COPY ./dist/bot/build/ . + +RUN python -m pip install --upgrade pip + +RUN apk update +RUN apk add --update alpine-sdk linux-headers +RUN apk add bash +RUN apk add nano + +RUN pip install -r requirements.txt --extra-index-url https://pip.sh-edraft.de +RUN pip install flask[async] + +CMD [ "bash", "/app/bot/bot"]