summaryrefslogblamecommitdiffstats
path: root/Dockerfile
blob: 15b1b2b0a92f1a7eb696eb9cc4416e55b60ce78c (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                               
 





                                                                
 
            
 
 




                                                 
 

                                          
FROM registry.access.redhat.com/ubi9/python-311:1-52.1712567218

# Add application sources with correct permissions for OpenShift
USER 0
COPY . /app
RUN mkdir -p /app/static/css /app/static/js /app/static/img
RUN chown -R 1001:0 /app
USER 1001

WORKDIR /app


# Install the dependencies
RUN pip install -U "pip>=19.3.1" && \
    pip install -r requirements.txt && \
    python manage.py collectstatic --noinput && \
    python manage.py migrate

# Run the application
CMD python manage.py runserver 0.0.0.0:8080