aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-11-11 17:58:22 +0000
committerterminaldweller <thabogre@gmail.com>2021-11-11 17:58:22 +0000
commit6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b (patch)
tree691ae46a355c35230cbba30c6f80e766a0d3158c /Dockerfile
parentupdate (diff)
downloaddevourer-6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b.tar.gz
devourer-6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b.zip
WIP
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 10 insertions, 3 deletions
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