Browse Source

Added package manager script

sigrids_version^2
Rasmus Rendal 11 months ago
parent
commit
8bc1b49be5
4 changed files with 12 additions and 6 deletions
  1. +2
    -0
      .gitignore
  2. +0
    -6
      Dockerfile
  3. +2
    -0
      README.txt
  4. +8
    -0
      pacman.sh

+ 2
- 0
.gitignore View File

@@ -0,0 +1,2 @@
semantic.min.css
themes/

+ 0
- 6
Dockerfile View File

@@ -25,10 +25,4 @@ COPY default.conf /etc/nginx/conf.d/default.conf
COPY ./ /www/
RUN rm /www/default.conf /www/Dockerfile

# Get Semantic UI. Currently a horrible hack
RUN wget -O /www/semantic.min.css "https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css"
# Kill google fonts. The fonts the user has already are probably perfectly fine
RUN sed -i '/@import url/d' /www/semantic.min.css


CMD php-fpm7 -D && nginx -g 'daemon off;'

+ 2
- 0
README.txt View File

@@ -0,0 +1,2 @@
Deploying instructions:
Run pacman.sh to get newest version of semantic ui, and remove google fonts reference

+ 8
- 0
pacman.sh View File

@@ -0,0 +1,8 @@
wget "https://github.com/Semantic-Org/Semantic-UI-CSS/archive/master.zip"
unzip master.zip
rm -rf themes
mv Semantic-UI-CSS-master/semantic.min.css ./
mv Semantic-UI-CSS-master/themes/ ./
sed -i "s/@import url.*/\/*/g" semantic.min.css
rm -rf Semantic-UI-CSS-master
rm -rf master.zip

Loading…
Cancel
Save