mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 12:35:39 +01:00
Fix docker config
This commit is contained in:
@@ -17,12 +17,17 @@ RUN python -m venv $VENV_PATH \
|
|||||||
&& pip install -r requirements.txt --no-cache-dir
|
&& pip install -r requirements.txt --no-cache-dir
|
||||||
|
|
||||||
|
|
||||||
FROM build-image as runtime-image
|
FROM python:3.10-slim as runtime-image
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install --no-install-recommends -y python3-dev libpq-dev libffi-dev \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./fastapi_file_server/ /app/
|
COPY ./fastapi_file_server/ /app/
|
||||||
|
|
||||||
|
ENV VENV_PATH=/opt/venv
|
||||||
COPY --from=build-image $VENV_PATH $VENV_PATH
|
COPY --from=build-image $VENV_PATH $VENV_PATH
|
||||||
ENV PATH="$VENV_PATH/bin:$PATH"
|
ENV PATH="$VENV_PATH/bin:$PATH"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user