diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..851e93d0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM httpd:2.4-alpine +RUN apk update && apk add --no-cache git +WORKDIR /usr/local/apache2/htdocs/ +RUN rm -rf * +RUN git clone https://github.com/emn178/online-tools.git +EXPOSE 80 diff --git a/README.md b/README.md index 4845eff1..1729a86a 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,12 @@ Please go to [Online Tools](https://emn178.github.io/online-tools/) ## Contact The project's website is located at https://github.com/emn178/online-tools Author: emn178@gmail.com + +## Deploy with Docker + +```shell +wget https://raw.githubusercontent.com/emn178/online-tools/refs/heads/master/Dockerfile +docker build -t online-tools:latest . +docker run -d --name online-tools -p 8000:80 online-tools:latest +#open http://127.0.0.1:8000/online-tools +```