FROM ubuntu:20.04 # Required system packages RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip curl && \ rm -rf /var/lib/apt/lists/* # Install gunicorn for running nearby_people RUN pip3 install gunicorn # Install Django RUN pip3 install django==3.2 # Install required Django package(s) RUN pip3 install pytz # Create application directory RUN mkdir -p /var/www/nearby_people/ # The nearby_people sources should be mounted (including the 'data' directory) VOLUME /var/www/nearby_people/ WORKDIR /var/www/nearby_people/nearby/ # nearby_people will be served on port 8000 EXPOSE 8000 CMD /usr/local/bin/gunicorn -b 0.0.0.0:8000 --workers 1 wsgi:application