diff options
Diffstat (limited to '')
| -rw-r--r-- | docker-compose.yml | 24 | ||||
| -rw-r--r-- | docker/Dockerfile | 26 | ||||
| -rw-r--r-- | docker/docker-compose.yml | 12 | 
3 files changed, 24 insertions, 38 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..f2f4b056 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +version: "3.7" +services: +  seasonalbot: +    build: +      context: . +      dockerfile: Dockerfile +    container_name: seasonalbot +    init: true + +    restart: always + +    environment: +      - SEASONALBOT_TOKEN=yourtokenhere +      - SEASONALBOT_DEBUG=true +    # - SEASONALBOT_GUILD= +    # - SEASONALBOT_ADMIN_ROLE_ID= +    # - CHANNEL_ANNOUNCEMENTS= +    # - CHANNEL_DEVLOG= +    # - CHANNEL_SEASONALBOT_CHAT= +    # - SEASON_OVERRIDE= + +    volumes: +      - /opt/pythondiscord/seasonalbot/log:/bot/bot/log +      - /opt/pythondiscord/seasonalbot/data:/bot/data diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index 67767ced..00000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -FROM python:3.7.2-alpine3.9 - -ENTRYPOINT ["python"] -CMD ["-m", "bot"] - -ENV PIP_NO_CACHE_DIR="false" \ -    PIPENV_DONT_USE_PYENV="1" \ -    PIPENV_HIDE_EMOJIS="1" \ -    PIPENV_IGNORE_VIRTUALENVS="1" \ -    PIPENV_NOSPIN="1" - -RUN apk add --no-cache --update \ -        build-base \ -        git \ -        libffi-dev \ -        libwebp-dev \ -        # Pillow dependencies -        freetype-dev \ -        libjpeg-turbo-dev \ -        zlib-dev -RUN pip install pipenv - -COPY . /bot -WORKDIR /bot - -RUN pipenv install --deploy --system diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml deleted file mode 100644 index 6e274451..00000000 --- a/docker/docker-compose.yml +++ /dev/null @@ -1,12 +0,0 @@ -version: "3.7" -services: -  dumbo: -    image: pythondiscord/seasonalbot:latest -    container_name: seasonalbot -    init: true - -    restart: always - -    environment: -      - SEASONALBOT_TOKEN -  |