diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 93997ed..9dc6946 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -21,7 +21,7 @@ jobs: permissions: contents: read packages: write - # + # steps: - name: Checkout repository uses: actions/checkout@v4 @@ -45,6 +45,7 @@ jobs: uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . + file: docker/openwec.Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/doc/docker.md b/doc/docker.md index 05b0a76..085ac86 100644 --- a/doc/docker.md +++ b/doc/docker.md @@ -15,12 +15,12 @@ Example: $ docker pull ghcr.io/cea-sec/openwec:latest ``` -### Building the image by yourself +### Building the image by yourself -A `Dockerfile` is present at the root of the repository. You can build it using: +`Dockerfiles` are present in the `docker` directory of the repository. You can build it using: ```bash -$ docker build -t openwec . +$ docker build -t openwec -f docker/openwec.Dockerfile . ``` ## Using `openwec` image diff --git a/Dockerfile b/docker/openwec.Dockerfile similarity index 100% rename from Dockerfile rename to docker/openwec.Dockerfile