mirror of
https://github.com/Qoyyuum/Forex-MT5-Bot.git
synced 2026-02-22 23:53:15 +00:00
28 lines
891 B
Text
28 lines
891 B
Text
|
|
# 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"]
|