Docker
This commit is contained in:
parent
9b25758951
commit
6991325831
7 changed files with 60 additions and 7 deletions
12
.dockerignore
Normal file
12
.dockerignore
Normal file
|
@ -0,0 +1,12 @@
|
|||
README.md
|
||||
|
||||
config.toml
|
||||
config.toml.example
|
||||
|
||||
Dockerfile
|
||||
|
||||
.idea
|
||||
.git
|
||||
|
||||
.gitignore
|
||||
.dockerignore
|
8
.idea/.gitignore
vendored
Normal file
8
.idea/.gitignore
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
9
.idea/bloaterbot.iml
Normal file
9
.idea/bloaterbot.iml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="Go" enabled="true" />
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/bloaterbot.iml" filepath="$PROJECT_DIR$/.idea/bloaterbot.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
11
Dockerfile
11
Dockerfile
|
@ -12,14 +12,11 @@ RUN pip3 install yt-dlp
|
|||
#build nenefootbot
|
||||
WORKDIR /app
|
||||
|
||||
COPY * ./
|
||||
|
||||
COPY . .
|
||||
RUN go mod download
|
||||
|
||||
RUN mkdir
|
||||
|
||||
RUN go build -o /bloaterbot
|
||||
RUN go build -o bloaterbot
|
||||
|
||||
ENV NENEFOOTBOT_APITOKEN $NENEFOOTBOT_APITOKEN
|
||||
ENV NENEFOOTBOT_DEBUGMODE $NENEFOOTBOT_DEBUGMODE
|
||||
|
||||
CMD [ "/bloaterbot" ]
|
||||
CMD [ "bloaterbot" ]
|
13
docker-compose.yaml
Normal file
13
docker-compose.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
version: '3.5'
|
||||
services:
|
||||
nenefootbot:
|
||||
image: bloaterbot:latest
|
||||
container_name: bloaterbot
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /opt/bloaterbot/config.toml:/app/config.toml
|
||||
networks:
|
||||
- expose
|
||||
networks:
|
||||
expose:
|
||||
external: true
|
Loading…
Reference in a new issue