Fix static files path and create the directory
This commit is contained in:
parent
5b64c4ee15
commit
a91d2b16b6
2 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,7 @@ RUN addgroup -S app && adduser -S app -G app
|
|||
ENV HOME=/home/app
|
||||
ENV APP_HOME=/home/app/app
|
||||
RUN mkdir $APP_HOME
|
||||
RUN mkdir $APP_HOME/staticfiles
|
||||
WORKDIR $APP_HOME
|
||||
|
||||
# install dependencies
|
||||
|
|
|
@ -12,4 +12,9 @@ server {
|
|||
proxy_redirect off;
|
||||
}
|
||||
|
||||
|
||||
location /static/ {
|
||||
alias /home/app/app/staticfiles/;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue