-
Notifications
You must be signed in to change notification settings - Fork 0
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
952ebf9
commit 4a0f07f
Showing
2 changed files
with
15 additions
and
9 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,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"] |
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,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 |