Spaces:
Running
Running
File size: 691 Bytes
4051191 f7842b9 4051191 101a7e5 48b912f 4051191 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# 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"]
|