From b87e6f5ef6b93c12dd647d7ac80fd4d1c234c6cd Mon Sep 17 00:00:00 2001 From: 3wish Date: Mon, 15 Apr 2024 16:34:40 +0800 Subject: [PATCH] update dockerfile --- .dev.Dockerfile | 2 +- .prod.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dev.Dockerfile b/.dev.Dockerfile index e72ec17..6f16f21 100644 --- a/.dev.Dockerfile +++ b/.dev.Dockerfile @@ -4,7 +4,7 @@ ENV POSTGRES_HOST=together-postgres ENV POSTGRES_USER=together ENV POSTGRES_PASSWORD=togetherno.1 COPY ./requirements.txt . -RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt -i https://mirrors.aliyun.com/pypi/simple +RUN pip install --no-cache-dir --upgrade -r /backend/requirements.txt -i https://mirrors.aliyun.com/pypi/simple COPY . . EXPOSE 8000 CMD ["sh", "-c", "alembic upgrade head && uvicorn src.main:app --host 0.0.0.0 --port 8000 --env-file ./.dev.env"] \ No newline at end of file diff --git a/.prod.Dockerfile b/.prod.Dockerfile index 331e419..8be227e 100644 --- a/.prod.Dockerfile +++ b/.prod.Dockerfile @@ -4,7 +4,7 @@ ENV POSTGRES_HOST=together-postgres ENV POSTGRES_USER=together ENV POSTGRES_PASSWORD=togetherno.1 COPY ./requirements.txt . -RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt -i https://mirrors.aliyun.com/pypi/simple +RUN pip install --no-cache-dir --upgrade -r /backend/requirements.txt -i https://mirrors.aliyun.com/pypi/simple COPY . . EXPOSE 8000 CMD ["sh", "-c", "alembic upgrade head && uvicorn src.main:app --host 0.0.0.0 --port 8000 --env-file ./.prod.env"] \ No newline at end of file