This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f36f504
commit 14fcaec
Showing
4 changed files
with
47 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM python:3.9.2 | ||
|
||
### 1. Set environment variables | ||
ENV PYTHONUNBUFFERED 1 | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV DOCKERIZE_VERSION v0.6.1 | ||
|
||
### 2. Setup GDAL | ||
RUN apt-get update &&\ | ||
apt-get -y install gettext ;\ | ||
apt-get -y install httpie; \ | ||
apt-get install -y binutils libproj-dev gdal-bin python3-gdal | ||
|
||
|
||
### 3. Add dockerize to allow waiting for the DB to load. | ||
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | ||
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz | ||
|
||
### 4. Create working directory | ||
RUN mkdir /app | ||
COPY . /app/ | ||
WORKDIR /app | ||
|
||
### 5. Install packages | ||
RUN set -e; \ | ||
/usr/local/bin/python -m pip install --upgrade pip ;\ | ||
python -m pip install pip-tools ;\ | ||
python -m pip install -r /app/requirements_test.txt ; | ||
|
||
### 6. Expose port | ||
EXPOSE 8012 |
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