Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # The first instruction is what image we want to base our container on
  2. # We Use an official Python runtime as a parent image
  3. #FROM python:3.6
  4. # FROM directive instructing base image to build upon
  5. FROM python:3.6.6
  6. # The enviroment variable ensures that the python output is set straight
  7. # to the terminal with out buffering it first
  8. #ENV PYTHONUNBUFFERED 1
  9. # App directory
  10. RUN mkdir -p /usr/src/app
  11. WORKDIR /usr/src/app
  12. # Install azure event hub client dependencies
  13. #COPY p /usr/src/app/
  14. # Bundle app source
  15. COPY . /usr/src/app
  16. # COPY startup script into known file location in container
  17. COPY start.sh /start.sh
  18. # create root directory for our project in the container
  19. #RUN mkdir /esther_kleinhenz_ba
  20. # EXPOSE port 8000 to allow communication to/from server
  21. #EXPOSE 8000
  22. RUN set -x \
  23. && buildDeps='curl gcc libc6-dev libsqlite3-dev libssl-dev make xz-utils zlib1g-dev'
  24. # Install any needed packages specified in requirements.txt
  25. RUN pip install -r requirements.txt
  26. # Set the working directory to /esther_kleinhenz_ba
  27. #WORKDIR /esther_kleinhenz_ba
  28. # CMD specifcies the command to execute to start the server running.
  29. CMD ["/start.sh"]
  30. # done!
  31. # Copy the current directory contents into the container at /esther_kleinhenz_ba
  32. #ADD . /esther_kleinhenz_ba/