Use Gitea actions instead of woodpecker and updated dependencies
Some checks failed
build

This commit is contained in:
2023-03-28 00:22:13 +02:00
parent c2cc959309
commit 1365a9a732
10 changed files with 168 additions and 146 deletions

View File

@@ -3,12 +3,16 @@ FROM python:3.11-slim
# Change the working directory to the root of the project
WORKDIR /srv/flask_app
# Create venv
RUN python -m venv myvenv
ENV PATH="myvenv/bin:$PATH"
# Install the dependencies
COPY telegram_bot/requirements.txt /srv/flask_app/
COPY requirements.txt /srv/flask_app/
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
# Copy the source code to the working directory
COPY telegram_bot /srv/flask_app
COPY . /srv/flask_app
# Change file permissions
RUN chmod +x ./deploy/start.sh

View File

@@ -32,7 +32,7 @@ docker run -d \
--env "BOT_API_KEY=" \
--env "NEWS_API_KEY=" \
--restart unless-stopped \
registry.flokaiser.com/aktienbot/bot:latest
git.flokaiser.com/dhbw/aktienbot-bot:latest
```
or load environment variables from file by using `--env-file <filename>`