mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 18:36:51 +00:00
15 lines
538 B
Plaintext
15 lines
538 B
Plaintext
FROM registry.access.redhat.com/ubi9/python-39:latest
|
|
USER root
|
|
RUN dnf update -y
|
|
RUN dnf install python3-psycopg2 -y
|
|
ADD . /app
|
|
COPY ./.github/local_settings_container.py /app/apimanager/apimanager/local_settings.py
|
|
COPY ./.github/gunicorn.conf.py /app/gunicorn.conf.py
|
|
RUN pip install -r /app/requirements.txt
|
|
WORKDIR /app
|
|
RUN ./apimanager/manage.py migrate
|
|
RUN chgrp -R 0 /app && chmod -R g+rwX /app
|
|
USER 501
|
|
WORKDIR /app/apimanager
|
|
EXPOSE 8000
|
|
CMD ["gunicorn", "--bind", ":8000", "--config", "../gunicorn.conf.py", "apimanager.wsgi"] |