Fix static files path and create the directory

This commit is contained in:
PCoder 2022-09-19 09:42:19 +05:30
parent 5b64c4ee15
commit a91d2b16b6
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -12,4 +12,9 @@ server {
proxy_redirect off;
}
location /static/ {
alias /home/app/app/staticfiles/;
}
}