-
Notifications
You must be signed in to change notification settings - Fork 99
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 #381 from PyAr/docker_compose
fix docker-compose config Voy a crear un issue para lo que falta, así queda registrado
- Loading branch information
Showing
6 changed files
with
40 additions
and
145 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,13 +1,20 @@ | ||
FROM python:3.4-wheezy | ||
FROM python:3.4 | ||
ENV PYTHONUNBUFFERED 1 | ||
ENV PYTHONPATH /code:$PYTHONPATH | ||
# runtime dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
python3-dev \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
zlib1g-dev \ | ||
libffi-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
VOLUME ["/opt/code"] | ||
|
||
RUN apt-get update && apt-get install -y apt-utils cmake gcc make tk-dev libjpeg-dev zlib1g-dev libtiff5-dev libfreetype6-dev liblcms2-dev libwebp-dev libtk-img-doc libopenjpeg-dev | ||
|
||
ADD ./scripts/install-openjpeg.sh /tmp/ | ||
RUN /tmp/install-openjpeg.sh | ||
|
||
COPY ./scripts/webcli.py /webcli | ||
|
||
CMD [ "/bin/bash" ] | ||
EXPOSE 8000 | ||
RUN mkdir /code | ||
WORKDIR /code | ||
# update pip (to use wheels) | ||
RUN wget -O - https://bootstrap.pypa.io/get-pip.py | python3 | ||
COPY dev_requirements.txt /code | ||
COPY requirements.txt /code | ||
RUN pip install -r dev_requirements.txt | ||
COPY . /code/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
python3 manage.py migrate | ||
python3 manage.py loaddata fixtures/initial_data.json | ||
python3 manage.py createsuperuser |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.