diff options
author | terminaldweller <thabogre@gmail.com> | 2021-11-11 17:58:22 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-11-11 17:58:22 +0000 |
commit | 6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b (patch) | |
tree | 691ae46a355c35230cbba30c6f80e766a0d3158c /Dockerfile | |
parent | update (diff) | |
download | devourer-6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b.tar.gz devourer-6777413a7f9c8d9ab784e7a39dfb5f60e405cb7b.zip |
WIP
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |