-
-
Notifications
You must be signed in to change notification settings - Fork 277
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 #1169 from hotosm/develop
Release v3.0.2
- Loading branch information
Showing
30 changed files
with
573 additions
and
205 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,26 @@ | ||
FROM python:3.6-jessie | ||
|
||
# Install dependencies for shapely | ||
RUN apt-get update | ||
RUN apt-get upgrade -y | ||
RUN apt-get install -y libgeos-dev | ||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y libgeos-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
# Uncomment and set with valid connection string for use locally | ||
#ENV TM_DB=postgresql://user:pass@host/db | ||
|
||
WORKDIR /src | ||
|
||
# Add and install Python modules | ||
ADD requirements.txt /src/requirements.txt | ||
RUN cd /src; pip install -r requirements.txt | ||
ADD requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
ADD . /src | ||
ADD . . | ||
|
||
# Expose | ||
EXPOSE 8000 | ||
|
||
# Gunicorn configured for single-core machine, if more cores available increase workers using formula ((cores x 2) + 1)) | ||
CMD cd /src; NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program gunicorn -b 0.0.0.0:8000 -w 5 --timeout 179 manage:application | ||
CMD NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program gunicorn -b 0.0.0.0:8000 -w 5 --timeout 179 manage:application | ||
|
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
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
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
Oops, something went wrong.