Jelajahi Sumber

pass /media/ static file path to uWSGI, per 97409097552d6d31ec0e25bfce790b9a94a02f92

Hourann Bosci 8 tahun lalu
induk
melakukan
c79355e17b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -41,4 +41,4 @@ RUN DATABASE_URL=postgres://none REDIS_URL=none /venv/bin/python manage.py colle
 
 # start uWSGI, using a wrapper script to allow us to easily add more commands to container startup:
 ENTRYPOINT ["/code/docker-entrypoint.sh"]
-CMD ["/venv/bin/uwsgi", "--http-auto-chunked", "--http-keepalive"]
+CMD ["/venv/bin/uwsgi", "--http-auto-chunked", "--http-keepalive", "--static-map", "/media/=/code/bakerydemo/media/"]