Update Dockerfile

This commit is contained in:
Joe Abbate 2023-01-31 13:40:41 -05:00 committed by GitHub
parent ed09637ff5
commit 1fce91de3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
FROM python:3.9-buster
WORKDIR /opt/proxstar
WORKDIR /etc/proxstar
RUN apt-get update -y && apt-get install -y python3-dev libldap2-dev libsasl2-dev ldap-utils git
COPY requirements.txt .
RUN pip install -r requirements.txt
@ -8,5 +8,5 @@ COPY .git .git/
COPY *.py .
COPY proxstar ./proxstar
RUN touch targets && chmod a+w targets # This is some OKD shit.
RUN git config --global --add safe.directory /opt/proxstar # This is also some OKD shit.
RUN git config --global --add safe.directory "*" # This is also some OKD shit.
ENTRYPOINT ddtrace-run gunicorn proxstar:app --bind=0.0.0.0:8080