Skip to content

Commit

Permalink
add dockerfile and docker-compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
fouzo95 committed May 27, 2022
1 parent a99eb08 commit 037cd0f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:2.7-stretch

LABEL maintainer="DIALLO Mafouz <mafouzdiallo@gmail.com>"

ADD . /

RUN apt-get update -y && apt-get install python-dev python3-dev \
libsasl2-dev python-dev libldap2-dev libssl-dev python-pip -y \
&& pip install flask flask_httpauth flask_simpleldap python-dotenv

RUN mkdir /data

VOLUME /data

EXPOSE 5000

CMD [ "python", "./student_age.py" ]
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: '3'
services:
website:
image: php:apache
environment:
USERNAME : "toto"
PASSWORD : "python"
volumes:
- "./website:/var/www/html"
depends_on:
- API
ports:
- 8090:80
API:
image: student_list_api
volumes:
- ./simple_api/student_age.json:/data/student_age.json
ports:
- 5000:5000

0 comments on commit 037cd0f

Please sign in to comment.