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