Update
This commit is contained in:
parent
e87c04969b
commit
17f7db4ea4
|
@ -9,7 +9,7 @@ WORKDIR /app
|
||||||
# Export poetry dependencies to file
|
# Export poetry dependencies to file
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
RUN pip install poetry poetry-plugin-export
|
RUN pip install poetry poetry-plugin-export
|
||||||
RUN poetry lock
|
# RUN poetry lock
|
||||||
RUN poetry self update
|
RUN poetry self update
|
||||||
COPY pyproject.toml ./
|
COPY pyproject.toml ./
|
||||||
RUN poetry export --without-hashes --format requirements.txt --output /app/requirements.txt
|
RUN poetry export --without-hashes --format requirements.txt --output /app/requirements.txt
|
||||||
|
@ -25,8 +25,8 @@ WORKDIR /app
|
||||||
|
|
||||||
# Copy requirements from build stage, and install them
|
# Copy requirements from build stage, and install them
|
||||||
COPY --from=build /app/requirements.txt .
|
COPY --from=build /app/requirements.txt .
|
||||||
|
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
RUN pip install --no-cache-dir "fastapi[standard]"
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
|
@ -2,7 +2,7 @@ services:
|
||||||
site:
|
site:
|
||||||
container_name: LeraFoxQueen
|
container_name: LeraFoxQueen
|
||||||
build: .
|
build: .
|
||||||
working_dir: /code/app
|
working_dir: /app
|
||||||
image: lerafoxqueen
|
image: lerafoxqueen
|
||||||
ports:
|
ports:
|
||||||
- "8001:8001"
|
- "8001:8001"
|
||||||
|
|
Loading…
Reference in New Issue