TelegramAktienBot/telegram_bot/Dockerfile

21 lines
491 B
Docker

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 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 . /srv/flask_app
# Change file permissions
RUN chmod +x ./deploy/start.sh
# Run the app
CMD ["./deploy/start.sh"]