Skip to content

Commit

Permalink
Committing for posterity.
Browse files Browse the repository at this point in the history
  • Loading branch information
skytreader committed Feb 7, 2017
1 parent 952ebf9 commit 4a0f07f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM mysql:mysql-server
FROM ubuntu:16.04

RUN apt-get update
RUN apt-get install -y python python-pip
RUN apt-get install -y mysql-server-5.7
RUN apt-get install -y mysql-client-core-5.7
RUN apt-get install -y mysql-client-5.7
RUN apt-get install -y libmysqlclient-dev

FROM python:2.7-wheezy
ADD ./librarian
WORKDIR ./librarian

RUN pip install -r requirements.txt
CMD ["python", "run.py"]
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: '2'
services:
web:
build: .
ports:
- "80:7070"
volumes:
- .:/librarian
db:
image: "mysql:5.7"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
ports:
- "3306:3306"
web:
build: .
ports:
- "80:7070"
volumes:
- .:/librarian

0 comments on commit 4a0f07f

Please sign in to comment.