Django static files not serving when running inside Docker container

I have a django application thats is rendering the static files when run outside docker container. I added a Dockerfile so that I can run it in a container. However, the static files are not getting served when running in the container

The sample app that I have used can be found here

I have added the following Dockerfile at the root level

FROM python:3.8

#add project files to the usr/src/app folder
ADD . /usr/src/app

#set directoty where CMD will execute 
WORKDIR /usr/src/app/wisdompets
COPY requirements.txt ./

# Get pip to download and install requirements:
RUN pip install --no-cache-dir -r requirements.txt

# Expose ports

# default command to execute    
CMD exec gunicorn wisdompets.wsgi:application --bind --workers 3

And the requirements.txt file at root level as below


The static files settings in my is as follows

STATIC_URL = '/static/'

    os.path.join(BASE_DIR, 'static')

Please let me know if there’s something wrong with my configuration

Source: Docker Questions