summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-02-23 23:17:16 +0400
committerAndrew <saintruler@gmail.com>2020-02-23 23:17:16 +0400
commit087a1baf57f64be29703447d4dd15f238a00d9a1 (patch)
tree370924e8a8d7407ea67cb91c96ccf1b228112fc0 /Dockerfile
parent7512932056b1edf82c3c711a9297445ac8c0cc52 (diff)
Added docker and reworked logging.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..8489469
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM python:3.7-alpine
+
+WORKDIR /app
+COPY . .
+
+RUN apk add --update --no-cache --virtual .build-deps \
+ openssl-dev \
+ g++ \
+ libffi-dev && \
+ apk add --update --no-cache \
+ tzdata \
+ git && \
+ pip install --no-cache-dir -r requirements.txt && \
+ apk del .build-deps && \
+ rm -rf /var/cache/apk/*
+
+CMD [ "python3", "bot.py" ] \ No newline at end of file