Source code for the modding-openmw.com website https://modding-openmw.com/
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.
 
 
 
 
 

36 rivejä
1.0 KiB

  1. FROM debian:10.4-slim
  2. # Taken from the docker compose django docs...
  3. ENV PYTHONUNBUFFERED 1
  4. RUN apt-get update \
  5. && apt-get install -y --force-yes \
  6. git python3 python3-dev python3-pip python3-yaml postgresql-client-11
  7. RUN mkdir app
  8. WORKDIR /app
  9. # Copy the requirements file first and do those installs before copying over the application code.
  10. # This prevents the pip install step from running when it doesn't need to...
  11. COPY requirements.txt .
  12. RUN python3 -m pip install -r requirements.txt
  13. # Now copy everything...
  14. COPY . .
  15. EXPOSE 8000/tcp
  16. RUN export user=momw home=/home/momw uid=1000 gid=1000 && \
  17. mkdir -p ${home} && \
  18. echo "${user}:x:${uid}:${gid}:${user},,,:${home}:/bin/bash" >> /etc/passwd && \
  19. echo "${user}:x:${uid}:" >> /etc/group && \
  20. chown ${uid}:${gid} -R ${home} /app
  21. USER momw
  22. # The app will run but there will be no data. See this URL for details:
  23. # https://git.modding-openmw.com/Modding-OpenMW.com/momw/src/branch/master/CONTRIBUTING.md#user-content-docker-setup
  24. CMD [ "make", "PORT=8000" ]