For the client, you could do something like: docker run -v .:/var/www/html -d -p 8889:80 ubuntu/apache2 For the server, you could create a Dockerfile like: FROM python:3 EXPOSE 8080 RUN pip install flask COPY . / CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=8080"] Then you build it. And run it. docker build -t exam_review_py . docker run -p 8080:8080 -d exam_review_py