Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb2f677a0f | ||
|
|
533eba17d2 | ||
|
|
7d7a68bc38 |
@@ -2,9 +2,8 @@ name: Docker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- !master
|
||||
- *
|
||||
branches-ignore:
|
||||
- master
|
||||
|
||||
env:
|
||||
IMAGE_NAME: discord-bot
|
||||
|
||||
-29
@@ -26,35 +26,6 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl
|
||||
ENTRYPOINT ["python", "__main__.py"]
|
||||
|
||||
|
||||
FROM python:3.8.13-alpine as alpine
|
||||
LABEL maintainer="marc.partensky@proton.me"
|
||||
LABEL image="https://hub.docker.com/r/marcpartensky/discord-bot"
|
||||
LABEL source="https://github.com/marcpartensky/discord-bot"
|
||||
RUN apk update
|
||||
RUN apk add ffmpeg git gcc g++ gfortran musl musl-dev build-base cmake openblas pkgconfig
|
||||
# RUN apk add ffmpeg git py3-scikit-learn
|
||||
COPY requirements.txt ./
|
||||
|
||||
RUN pip install -U pip
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
WORKDIR /app
|
||||
COPY ./tts tts
|
||||
COPY ./libs libs
|
||||
COPY ./assets assets
|
||||
COPY ./utils utils
|
||||
COPY ./config config
|
||||
COPY ./models models
|
||||
COPY ./cogs cogs
|
||||
COPY __main__.py LICENSE ./
|
||||
|
||||
ENV DISCORD_BOT_HOST 0.0.0.0
|
||||
ENV DISCORD_BOT_PORT 8000
|
||||
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://localhost:8000/live || exit 1
|
||||
|
||||
ENTRYPOINT ["python", "__main__.py"]
|
||||
|
||||
|
||||
FROM python:3.8.13-alpine as alpine
|
||||
LABEL maintainer="marc.partensky@proton.me"
|
||||
LABEL image="https://hub.docker.com/r/marcpartensky/discord-bot"
|
||||
|
||||
+1195
-895
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user