update dockerfile
parent
166d71272d
commit
b87e6f5ef6
|
@ -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"]
|
|
@ -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"]
|
Loading…
Reference in New Issue