From 6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 11 Nov 2021 21:28:22 +0330 Subject: WIP --- Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 7e5641c..3cf3409 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,9 +19,16 @@ WORKDIR $PYSETUP_PATH COPY ./pyproject.toml ./ RUN poetry install --no-dev +FROM node:lts-alpine3.13 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 +RUN pip3 install uvicorn +COPY --from=certbuilder /certs/ /certs ENV FASTAPI_ENV=production COPY --from=builder-base $VENV_PATH $VENV_PATH -COPY ./main.py $PYSETUP_PATH/main.py -ENTRYPOINT ["$PYSETUP_PATH/main.py"] -# CMD ["--source", "https://github.com/coinpride/CryptoList"] +COPY ./docker-entrypoint.sh /docker-entrypoint.sh +COPY ./devourer.py $PYSETUP_PATH/devourer.py +WORKDIR $PYSETUP_PATH -- cgit v1.2.3