mirror of
https://github.com/Qoyyuum/Forex-MT5-Bot.git
synced 2026-11-22 13:09:34 +00:00
# For more information, please refer to https://aka.ms/vscode-docker-python
| |
FROM python:3.8-slim-buster
| |
| |
# Keeps Python from generating .pyc files in the container
| |
ENV PYTHONDONTWRITEBYTECODE=1
| |
| |
# Turns off buffering for easier container logging
| |
ENV PYTHONUNBUFFERED=1
| |
| |
RUN pip install pipenv
| |
| |
# Install pip requirements
| |
COPY Pipfile* .
| |
RUN python -m pipenv install --system --deploy
| |
| |
WORKDIR /app
| |
COPY . /app
| |
| |
# Run in a cron job
| |
# */1 * * * 1-5
| |
| |
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
| |
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
| |
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
| |
USER appuser
| |
| |
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
| |
CMD ["python", "app.py"]
|