diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 232d8f70c4..0000000000 --- a/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM floryn90/hugo:ext-alpine - -RUN apk add git && \ - git config --global --add safe.directory /src diff --git a/README.md b/README.md index ecf4155859..a8653665dc 100644 --- a/README.md +++ b/README.md @@ -69,20 +69,12 @@ than [Docker Desktop](https://www.docker.com/products/docker-desktop) on Windows and Mac, and [Docker Compose](https://docs.docker.com/compose/install/) on Linux. -1. Build the docker image - - ```bash - docker-compose build - ``` - -1. Run the built image +1. Spin up the service ```bash docker-compose up ``` - > NOTE: You can run both commands at once with `docker-compose up --build`. - 1. Verify that the service is working. Open your web browser and type `http://localhost:1313` in your navigation bar, @@ -94,7 +86,7 @@ on Linux. To stop Docker Compose, on your terminal window, press **Ctrl + C**. -To remove the produced images run: +To remove the produced container run: ```bash docker-compose rm diff --git a/docker-compose.yaml b/docker-compose.yaml index 9069dc0679..e8443444fb 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,11 +3,10 @@ version: "3.8" services: site: - image: docsy/docsy-example - build: - context: . - command: server - ports: - - "1313:1313" + image: hugomods/hugo:std-exts + command: server -D volumes: - - .:/src + - ./:/src + - ~/hugo_cache:/tmp/hugo_cache + ports: + - 1313:1313