Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize #83

Merged
merged 3 commits into from
May 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git/*
GTFS/**/*.txt
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3.6-slim-stretch

RUN apt-get update && apt-get -y upgrade && \
apt-get install -y python3-pip \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install pandas tornado xmltodict tinydb pycryptodomex --user --no-cache-dir
RUN mkdir -p /app
WORKDIR /app
COPY . /app/

EXPOSE 5000

CMD cd /app/ && python3 GTFSManager.py
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ See on the project wiki: [Running on Ubuntu OS](https://github.com/WRI-Cities/st
### Running with Python3 on a Windows OS
See on the project wiki: [Running on Windows OS with Python 3](https://github.com/WRI-Cities/static-GTFS-manager/wiki/Running-on-Windows-OS-with-Python-3)

### Running in Docker with Compose
Check out the repo and run

docker-compose up

----

## Changing the password
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3'
services:
static-gtfs-manager:
ports:
- '5000:5000'
image: laidig/static-gtfs-manager
volumes:
- GTFS:/app/GTFS/

volumes:
GTFS: