2
0
mirror of https://github.com/offen/website.git synced 2024-11-26 18:50:27 +01:00
website/Makefile

36 lines
1.0 KiB
Makefile
Raw Normal View History

help:
@echo " setup"
2019-09-05 14:02:01 +02:00
@echo " Build the development containers and install dependencies."
@echo " update"
@echo " Install / update dependencies in the development containers."
2019-09-05 14:02:01 +02:00
@echo " build"
@echo " Build the production assets."
setup: dev-build update
dev-build:
@docker-compose build
up:
@docker-compose up
update:
@echo "Installing / updating dependencies ..."
@docker-compose run homepage pip install --user -r requirements.txt
@echo "Successfully built containers and installed dependencies."
KEYBASE_FILE ?= keybase.txt
ROBOTS_FILE ?= robots.txt.staging
SITEURL ?= http://localhost:8000
2019-09-11 12:44:51 +02:00
2019-09-05 11:18:42 +02:00
build:
2020-01-08 15:58:59 +01:00
@docker build --build-arg siteurl=${SITEURL} --build-arg offenaccountid=${OFFEN_ACCOUNT_ID} -t offen/website -f build/Dockerfile .
@rm -rf output && mkdir output
@docker create --entrypoint=bash -it --name assets offen/website
@docker cp assets:/code/homepage/output/. ./output/
@cp build/${ROBOTS_FILE} ./output/robots.txt
@cp build/${KEYBASE_FILE} ./output/keybase.txt
@docker rm assets
.PHONY: setup build up