You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
524 B
Docker
24 lines
524 B
Docker
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
|