forked from opengaming/osgameclones
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request opengaming#1277 from caiotava/feat/add-docker-recipes
Add Makefile recipes to help run the server with Docker
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
PORT=80 | ||
|
||
run: | ||
pipenv run ./render.py | ||
|
||
prod: | ||
./render.py && htmlmin _build/index.html _build/index.html | ||
|
||
docker-build: | ||
docker build -t opengaming/osgameclones . | ||
|
||
docker-run: | ||
-docker rm -f osgameclones-site | ||
docker run -d -p${PORT}:80 --name osgameclones-site opengaming/osgameclones | ||
|
||
.PHONY: | ||
run prod docker-build docker-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters