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