Docker file for frappe

FROM ubuntu:16.04

RUN apt-get update && apt-get -y install sudo

RUN apt-get -y install wget

RUN apt-get -y install python

RUN wget

RUN printf ‘frappe\nfrappe\nfrappe\nfrappe\n’ | python --develop --user frappe

RUN service mysql stop

RUN service mysql restart

RUN service mysql reload------->after this command docker file is not running can anyone give me some suggestions…
the error is
’Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111 “Connection refused”)’) in docker file

in a docker file you just can prepare the image. so if you start mysql service, this will just result in some .lock files somewhere in the image.
If you want to start a service, you should start it in the container, not in the image.

That means you are saying that i can’t run the command service mysql on docker file

start mysql as another docker container and just link it, if you require that service.
or after you got the docker image write a small script which is executed on CMD or on ENTRYPOINT that starts all your needed services.