File tree Expand file tree Collapse file tree 6 files changed +25
-6
lines changed Expand file tree Collapse file tree 6 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 11[run]
22include =
33 *project/*
4- *pyms/*
54omit =
65 venv/*
Original file line number Diff line number Diff line change 11FROM python:3.6.4-alpine3.7
22
3- RUN apk add --update curl gcc g++ git libffi-dev openssl-dev python3-dev \
3+ RUN apk add --update curl gcc g++ git libffi-dev openssl-dev python3-dev build-base linux-headers \
44 && rm -rf /var/cache/apk/*
55RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
66
77ENV PYTHONUNBUFFERED=1 ENVIRONMENT=pre APP_HOME=/microservice/
8- RUN mkdir $APP_HOME && adduser -S -D -H python
8+ ENV DATABASE_DIR=database
9+ ENV CONFIGMAP_FILE="$APP_HOME" config-docker.yml
910
11+ RUN mkdir $APP_HOME && adduser -S -D -H python
1012RUN chown -R python $APP_HOME
1113WORKDIR $APP_HOME
14+
1215ADD requirement*.txt $APP_HOME
16+ RUN pip install --upgrade pip
1317RUN pip install -r requirements-docker.txt
18+
1419ADD . $APP_HOME
20+ RUN mkdir $DATABASE_DIR
21+ RUN chmod 777 $DATABASE_DIR
1522
1623EXPOSE 5000
1724USER python
Original file line number Diff line number Diff line change 1+ ms :
2+ DEBUG : false
3+ TESTING : false
4+ APP_NAME : Template
5+ APPLICATION_ROOT : /template
6+ SQLALCHEMY_TRACK_MODIFICATIONS : true
7+ SECRET_KEY : " gjr39dkjn344_!67#"
8+ DATABASE : db.sqlite3
9+ SQLALCHEMY_DATABASE_URI : sqlite:////microservice/database/db.sqlite3
Original file line number Diff line number Diff line change 66 SQLALCHEMY_TRACK_MODIFICATIONS : true
77 SECRET_KEY : " gjr39dkjn344_!67#"
88 DATABASE : db.sqlite3
9- SQLALCHEMY_DATABASE_URI : sqlite:///db.sqlite3
9+ SQLALCHEMY_DATABASE_URI : sqlite:////microservice/database/ db.sqlite3
Original file line number Diff line number Diff line change 11-r requirements.txt
22gevent==1.3.7
33gunicorn==19.9.0
4+ psutil==5.4.8
Original file line number Diff line number Diff line change 11Flask-SQLAlchemy == 2.3.2
2- py-ms == 0.1.1
3- SQLAlchemy == 1.2.14
2+ SQLAlchemy == 1.2.14
3+ Flask-Script == 2.0.6
4+ # py-ms==0.1.1
5+ git+https://github.com/python-microservices/pyms.git@master#egg=py-ms
6+ connexion [swagger-ui ]== 2.0.1
You can’t perform that action at this time.
0 commit comments