fix(docker): set entrypoint to uwsgi for base image

This commit is contained in:
Tiara Rodney 2022-04-09 02:27:01 +02:00
parent edf450613a
commit e8ae877a48
3 changed files with 92 additions and 27 deletions

View file

@ -15,7 +15,11 @@ COPY . .
RUN apt-get update && \
apt-get install -y libffi-dev gcc && \
python3 -m pip install pipenv && \
python3 -m pipenv install --deploy --system --verbose && \
python3 setup.py install && \
apt-get remove -y libffi-dev gcc && apt-get autoremove -y && apt-get clean -y
apt-get remove -y libffi-dev gcc && apt-get autoremove -y && apt-get clean -y
CMD ["httpaste", "--help"]
ENTRYPOINT ["uwsgi", "--master", "--enable-threads", "--manage-script-name", "-w", "httpaste.wsgi:application"]
CMD ["-s", "/tmp/yourapplication.sock"]