# For more information, please refer to https://aka.ms/vscode-docker-python FROM python:3.11 # Keeps Python from generating .pyc files in the container ENV PYTHONDONTWRITEBYTECODE=1 # Turns off buffering for easier container logging ENV PYTHONUNBUFFERED=1 WORKDIR /app # Install pip requirements COPY requirements.txt . RUN python -m pip install --no-cache-dir -r requirements.txt COPY . /app RUN mkdir -p /app/sessions && chmod 777 /app/sessions RUN mkdir -p /app/cache && chmod -R 777 /app/cache RUN alembic upgrade head # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug CMD ["bash", "start.sh"]