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#15 from marians/leaner-image
Leaner image, dependency update
- Loading branch information
Showing
2 changed files
with
8 additions
and
17 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,21 +1,12 @@ | ||
FROM debian:jessie | ||
FROM python:2.7-alpine | ||
|
||
MAINTAINER Marian Steinbach <[email protected]> | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
COPY requirements.txt /requirements.txt | ||
ADD requirements.txt / | ||
RUN pip install -r /requirements.txt | ||
ADD . /app/ | ||
|
||
RUN set -x \ | ||
&& apt-get update -q \ | ||
&& apt-get install -qy --no-install-recommends \ | ||
python-pip build-essential python-dev \ | ||
&& pip install -r requirements.txt \ | ||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false build-essential python-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY runserver.py /runserver.py | ||
ADD static /static | ||
ADD templates /templates | ||
|
||
ENTRYPOINT ["python", "-u", "runserver.py"] | ||
EXPOSE 5001 | ||
ENTRYPOINT ["python", "-u", "/app/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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
redis==2.10.1 | ||
Flask==0.10.1 | ||
redis==2.10.5 | ||
Flask==0.11.1 |