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