Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Castro0o | fb551ab9d8 | 5 years ago |
@ -0,0 +1,23 @@
|
||||
FROM python:3.7.6-alpine
|
||||
|
||||
RUN adduser -D wikiapi
|
||||
WORKDIR /home/wikiapi
|
||||
RUN apk add openssh
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN python3 -m venv env
|
||||
RUN env/bin/pip install --upgrade pip setuptools
|
||||
RUN env/bin/pip install -r requirements.txt
|
||||
|
||||
COPY *.py *.sh ./
|
||||
COPY login.txt ./
|
||||
COPY static static
|
||||
COPY templates templates
|
||||
COPY sandbox sandbox
|
||||
RUN chown -R wikiapi:wikiapi /home/wikiapi/
|
||||
|
||||
USER wikiapi
|
||||
|
||||
CMD env/bin/python download_imgs.py
|
||||
## HOW TO PREVENT CMD RUNNING CONCURRENTLY??
|
||||
#CMD env/bin/python query2html.py
|
@ -0,0 +1,11 @@
|
||||
certifi==2019.11.28
|
||||
chardet==3.0.4
|
||||
idna==2.8
|
||||
Jinja2==2.11.1
|
||||
MarkupSafe==1.1.1
|
||||
mwclient==0.10.0
|
||||
oauthlib==3.1.0
|
||||
requests==2.22.0
|
||||
requests-oauthlib==1.3.0
|
||||
six==1.14.0
|
||||
urllib3==1.25.8
|
Loading…
Reference in New Issue