Some suggested changes.

This commit is contained in:
FireMasterK 2020-09-09 11:55:52 +05:30
parent 62bde03bfd
commit 4038a819f8
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58
2 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM python:alpine FROM python:3-alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
@ -6,9 +6,11 @@ RUN apk add gcc musl-dev libffi-dev openssl-dev libxml2-dev libxslt-dev file llv
COPY requirements.txt ./ COPY requirements.txt ./
RUN pip install wheel cryptography gunicorn pymysql RUN pip install --no-cache-dir wheel cryptography gunicorn pymysql
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
RUN apk del gcc musl-dev libffi-dev openssl-dev libxml2-dev libxslt-dev file llvm-dev make g++
COPY . . COPY . .
RUN flask db init \ RUN flask db init \

View File

@ -1,13 +1,13 @@
version: '3.4' version: '3.8'
services: services:
mariadb: mariadb:
image: mariadb:latest image: mariadb:10.5
environment: environment:
MYSQL_ROOT_PASSWORD: changeme MYSQL_ROOT_PASSWORD: changeme
MYSQL_DATABASE: yotter MYSQL_DATABASE: yotter
MYSQL_USER: yotter MYSQL_USER: yotter
MYSQL_PASSWORD: changeme MYSQL_PASSWORD: changeme
restart: on-failure restart: unless-stopped
volumes: volumes:
- /var/lib/mysql - /var/lib/mysql
healthcheck: healthcheck: