mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-17 11:13:32 +08:00
restore backend.dockerfile
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
FROM python:3.10
|
||||
|
||||
WORKDIR /backend
|
||||
|
||||
COPY ./requirements.txt /backend/requirements.txt
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade -r /backend/requirements.txt
|
||||
|
||||
COPY ./alembic.ini /backend/alembic.ini
|
||||
COPY ./alembic /backend/alembic
|
||||
COPY ./app /backend/app
|
||||
|
||||
ENV PYTHONPATH=/backend/app
|
||||
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
|
||||
Reference in New Issue
Block a user