mirror of
https://github.com/Adam-Ant/QuotesDB
synced 2024-12-20 11:34:35 +00:00
Add Dockerfile, and related files
This commit is contained in:
parent
aedf571a26
commit
3380fbc7b5
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import pymysql
|
||||
import getpass
|
||||
import sys
|
||||
|
2
main.py
2
main.py
@ -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
4
requirements.txt
Normal file
@ -0,0 +1,4 @@
|
||||
passlib>=1.6.2
|
||||
bcrypt>=3.1.3
|
||||
Flask
|
||||
|
Loading…
Reference in New Issue
Block a user