Use Gitea actions instead of woodpecker

This commit is contained in:
2023-03-28 00:22:13 +02:00
parent c2cc959309
commit 07b9ebb487
3 changed files with 111 additions and 90 deletions

View File

@@ -1,14 +1,18 @@
FROM python:3.11-slim
FROM python:3.10-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