Skip to content

Commit

Permalink
Merge pull request marians#15 from marians/leaner-image
Browse files Browse the repository at this point in the history
Leaner image, dependency update
  • Loading branch information
marians authored Sep 13, 2016
2 parents a90e17d + 166312f commit 3783587
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
21 changes: 6 additions & 15 deletions Dockerfile
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"]
4 changes: 2 additions & 2 deletions requirements.txt
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

0 comments on commit 3783587

Please sign in to comment.