Based Docker image on alpine to have a smaller (and faster to build) image
This commit is contained in:
parent
385bc29705
commit
0d461bef5e
6 changed files with 68 additions and 67 deletions
|
|
@ -1,24 +0,0 @@
|
|||
FROM python:3.6
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
# Requirements have to be pulled and installed here, otherwise caching won't work
|
||||
RUN echo 'deb http://httpredir.debian.org/debian/ jessie-backports main' > /etc/apt/sources.list.d/ffmpeg.list
|
||||
COPY ./requirements.apt /requirements.apt
|
||||
RUN apt-get update; \
|
||||
grep "^[^#;]" requirements.apt | \
|
||||
grep -Fv "python3-dev" | \
|
||||
xargs apt-get install -y --no-install-recommends; \
|
||||
rm -rf /usr/share/doc/* /usr/share/locale/*
|
||||
|
||||
RUN mkdir /requirements
|
||||
COPY ./requirements/base.txt /requirements/base.txt
|
||||
RUN pip install -r /requirements/base.txt
|
||||
COPY ./requirements/local.txt /requirements/local.txt
|
||||
RUN pip install -r /requirements/local.txt
|
||||
COPY ./requirements/test.txt /requirements/test.txt
|
||||
RUN pip install -r /requirements/test.txt
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
ENTRYPOINT ["compose/django/dev-entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue