forked from marians/rebrow
-
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 marians#4 from marians/dockerize
Dockerize
- Loading branch information
Showing
4 changed files
with
42 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM debian:wheezy | ||
|
||
MAINTAINER Marian Steinbach <[email protected]> | ||
|
||
ENV DEBIAN_FROMTEND noninteractive | ||
|
||
RUN apt-get update -q | ||
|
||
RUN apt-get install -qy --no-install-recommends python-pip build-essential python-dev | ||
|
||
ADD requirements.txt /requirements.txt | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
ADD runserver.py /runserver.py | ||
ADD static /static | ||
ADD templates /templates | ||
|
||
ENTRYPOINT ["python", "-u", "runserver.py"] |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
docker-build: | ||
# Building the docker image "rebrow" | ||
docker build -t rebrow . | ||
|
||
docker-testrun: | ||
# Running the docker image, linked to a redis container | ||
docker run --rm -ti -p 5001:5001 --link redis:redis -e "SECRET_KEY=abc123" rebrow |
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
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