This commit is contained in:
@@ -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
|
||||
|
@@ -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>`
|
||||
|
Reference in New Issue
Block a user