Self-host twemoji and the CSS

This commit is contained in:
Thomas Sileo
2019-08-17 21:33:15 +02:00
parent 369c380054
commit 984c146e37
3 changed files with 10 additions and 3 deletions

View File

@@ -35,9 +35,16 @@ microblogpub:
# Rebuild the Docker image
docker build . --no-cache -t microblogpub:latest
.PHONY: css
css:
# Download pure.css if needed
[[ ! -f static/pure.css ]] && curl https://unpkg.com/purecss@1.0.1/build/pure-min.css > static/pure.css
# Download the emojis from twemoji if needded
[[ ! -d static/twemoji ]] && wget https://github.com/twitter/twemoji/archive/v12.1.2.tar.gz && tar xvzf https://github.com/twitter/twemoji/archive/v12.1.2.tar.gz && mv twemoji-12.1.2/assets/svg static/twemoji && rm -rf twemoji-12.1.2
# Run the docker-compose project locally (will perform a update if the project is already running)
.PHONY: run
run: microblogpub
run: microblogpub css
# (poussetaches and microblogpub Docker image will updated)
# Update MongoDB
docker pull mongo:3