Browse Source

Added package manager script

pull/1/head^2
Rasmus Rendal 2 years ago
parent
commit
8bc1b49be5
  1. 2
      .gitignore
  2. 6
      Dockerfile
  3. 2
      README.txt
  4. 8
      pacman.sh

2
.gitignore

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

6
Dockerfile

@ -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
README.txt

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

8
pacman.sh

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