-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
40 lines (34 loc) · 965 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# A minimal Dockerfile for painless discord bots.
# v1.0.0
# Copyright (c) 2019 classabbyamp, 0x5c
# Released under the terms of the MIT license.
# Part of:
# https://github.com/0x5c/quick-bot-no-pain
FROM alpine:3.10
COPY . /app
WORKDIR /app
ENV PYTHON_BIN python3
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
g++ \
git \
gcc \
libressl-dev \
python3-dev && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
libressl \
py3-pip \
python3 && \
echo "**** install pip packages ****" && \
pip3 install -U pip setuptools wheel && \
pip3 install -r requirements.txt && \
echo "**** clean up ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/root/.cache \
/tmp/* \
/var/cache/apk/*
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]