File tree Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,18 @@ RUN apk add --update curl gcc g++ git libffi-dev openssl-dev python3-dev build-b
55RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
66
77ENV PYTHONUNBUFFERED=1 ENVIRONMENT=pre APP_HOME=/microservice/
8- ENV CONFIGMAP_FILE="$APP_HOME" tests/config-tests.yml
8+ ENV DATABASE_DIR=database
9+ ENV CONFIGMAP_FILE="$APP_HOME" config-docker.yml
910RUN mkdir $APP_HOME && adduser -S -D -H python
1011
1112RUN chown -R python $APP_HOME
12- RUN chmod 777 $APP_HOME
1313WORKDIR $APP_HOME
14- ADD requirement*.txt $APP_HOME
15- RUN pip install -r requirements-docker.txt
1614ADD . $APP_HOME
15+ RUN mkdir $DATABASE_DIR
16+ RUN chmod 777 $DATABASE_DIR
17+ RUN ls -lah
18+ RUN pip install --upgrade pip
19+ RUN pip install -r requirements-docker.txt
1720
1821EXPOSE 5000
1922USER 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 : ' '
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:////microservice/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_test.sqlite3
9- SQLALCHEMY_DATABASE_URI : sqlite:////microservice/db_test.sqlite3
9+ SQLALCHEMY_DATABASE_URI : sqlite:////microservice/database/ db_test.sqlite3
You can’t perform that action at this time.
0 commit comments