ju2ez commited on
Commit
d588b2e
·
1 Parent(s): 6e2b29c
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -5,6 +5,7 @@ FROM python:3.10-slim
5
 
6
  USER root
7
 
 
8
  # Set the working directory to the user's home directory
9
  WORKDIR $HOME/app
10
 
@@ -19,4 +20,6 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
19
  RUN chmod 777 ./*
20
  RUN chmod 777 /usr/local/lib/python3.10/site-packages/mercury/*
21
 
 
 
22
  CMD ["mercury", "run", "7860"]
 
5
 
6
  USER root
7
 
8
+
9
  # Set the working directory to the user's home directory
10
  WORKDIR $HOME/app
11
 
 
20
  RUN chmod 777 ./*
21
  RUN chmod 777 /usr/local/lib/python3.10/site-packages/mercury/*
22
 
23
+ ENV MEDIA_ROOT ./media
24
+ CMD ["mkdir", "-p", "media"]
25
  CMD ["mercury", "run", "7860"]