From fd6f77c7ec5aad1d6fe15f42f681820d10f34b93 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 20 May 2022 00:24:35 +0430 Subject: restructing. added a new service to handle the downloading --- Dockerfile | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index f8882fe..0000000 --- a/Dockerfile +++ /dev/null @@ -1,33 +0,0 @@ -FROM python:3.8.11-slim as python-base -ENV PYTHONUNBUFFERED=1 \ - PYTHONDONTWRITEBYTECODE=1 \ - PIP_NO_CACHE_DIR=off \ - PIP_DISABLE_PIP_VERSION_CHECK=on \ - PIP_DEFAULT_TIMEOUT=100 \ - POETRY_HOME="/poetry" \ - POETRY_VIRTUALENVS_IN_PROJECT=true \ - POETRY_NO_INTERACTION=1 \ - PYSETUP_PATH="/devourer" \ - VENV_PATH="/devourer/.venv" -ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH" - -FROM python-base as builder-base -ENV POETRY_VERSION=1.0.0 -RUN apt update && apt install -y --no-install-recommends curl build-essential -RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python -WORKDIR $PYSETUP_PATH -COPY ./pyproject.toml ./ -RUN poetry install --no-dev - -FROM alpine:3.15 AS certbuilder -RUN apk add openssl -WORKDIR /certs -RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert - -FROM python-base as production -COPY --from=certbuilder /certs/ /certs -ENV FASTAPI_ENV=production -COPY --from=builder-base $VENV_PATH $VENV_PATH -COPY ./docker-entrypoint.sh /docker-entrypoint.sh -COPY ./devourer.py $PYSETUP_PATH/devourer.py -WORKDIR $PYSETUP_PATH -- cgit v1.2.3