1
0
mirror of https://github.com/Adam-Ant/QuotesDB synced 2024-06-14 04:57:24 +00:00

Add Dockerfile, and related files

This commit is contained in:
Adam Dodman 2017-10-05 23:11:15 +01:00
parent aedf571a26
commit 3380fbc7b5
4 changed files with 22 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM alpine:3.6
MAINTAINER Adam Dodman <"adam.dodman@gmx.com">
ADD * /quotedb/
RUN apk add --no-cache python3 py3-pip tini gcc python3-dev libc-dev libffi-dev \
&& pip3 install -r /quotedb/requirements.txt \
&& ln -s /quotedb/adduser.py /usr/bin/quote-adduser
VOLUME ["/config"]
CMD ["/sbin/tini","--","python3","-u","/quotedb/main.py","-c","/config"]

View File

@ -1,3 +1,5 @@
#!/usr/bin/python3
import pymysql
import getpass
import sys

View File

@ -1,3 +1,5 @@
#!/usr/bin/python3
from os import urandom as rand
from os.path import isdir as isdir
from os.path import isfile as isfile

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
passlib>=1.6.2
bcrypt>=3.1.3
Flask