File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 41
41
registry : ghcr.io
42
42
username : ${{ github.repository_owner }}
43
43
password : ${{ secrets.GITHUB_TOKEN }}
44
+
45
+ - name : Give X perms to startup.sh
46
+ run : |
47
+ chmod +x startup.sh
48
+ ls -la | grep startup.sh
44
49
45
50
- name : Build and Push
46
51
uses : docker/build-push-action@v2
Original file line number Diff line number Diff line change @@ -2,11 +2,15 @@ FROM python:3.8-slim-buster
2
2
3
3
WORKDIR /app
4
4
5
- RUN apt-get update && apt-get install -y procps net-tools
5
+ RUN apt-get update && apt-get install -y procps net-tools screen
6
6
7
7
COPY requirements.txt requirements.txt
8
8
RUN pip3 install -r requirements.txt
9
9
10
10
COPY . .
11
11
12
- CMD [ "python3" , "discord_bot.py" ]
12
+ # Run app directly
13
+ # CMD [ "python3", "discord_bot.py" ]
14
+
15
+ # Run app in a screen session via startup script
16
+ CMD [ "startup.sh" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ screen -S discordbot -d -m python discord_bot.py
You can’t perform that action at this time.
0 commit comments