Compare commits

...

1 Commits

Author SHA1 Message Date
Claudio Maggioni (maggicl) 937783b108 Fixed static files for admin 2019-04-28 16:05:41 +02:00
3 changed files with 9 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
/static/
!/static/.gitkeep
### OSX ### ### OSX ###
.DS_Store .DS_Store
.AppleDouble .AppleDouble

View File

@ -17,7 +17,7 @@ FROM alpine:3.8
MAINTAINER Claudio Maggioni (praticamentetilde) MAINTAINER Claudio Maggioni (praticamentetilde)
RUN addgroup -S app && adduser -S -G app app RUN addgroup -S app && adduser -S -G app app
# Install required packages and remove the apt packages cache when done # Install required packages and remove the apt packages cache when done
RUN apk update && apk add \ RUN apk update && apk add \
@ -26,7 +26,7 @@ RUN apk update && apk add \
uwsgi-python3 \ uwsgi-python3 \
git \ git \
python3 \ python3 \
python3-dev python3-dev
# COPY requirements.txt and RUN pip install BEFORE adding the rest of your # COPY requirements.txt and RUN pip install BEFORE adding the rest of your
# code, this will cause Docker's caching mechanism to prevent re-installing # code, this will cause Docker's caching mechanism to prevent re-installing
@ -40,6 +40,8 @@ COPY . /home/app/code/
RUN chown -R app: /home/app RUN chown -R app: /home/app
RUN python3 /home/app/code/manage.py collectstatic
EXPOSE 8000 EXPOSE 8000
CMD ["/usr/sbin/uwsgi", "--ini", "/home/app/code/uwsgi.ini", "--plugin", "python3"] CMD ["/usr/sbin/uwsgi", "--ini", "/home/app/code/uwsgi.ini", "--plugin", "python3"]
USER app USER app

View File

@ -37,6 +37,8 @@ LOGOUT_REDIRECT_URL = "/"
ITEMS_PER_PAGE = 30 ITEMS_PER_PAGE = 30
STATIC_ROOT = "static/"
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [