From 2bb02eb9354f1299581c637fea0fd2f257dd1fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?= Date: Fri, 1 Nov 2024 13:21:08 +0100 Subject: [PATCH] docker: move Dockerfile under docker/ Preparation for a second Alpine-based image. --- .github/workflows/docker-image.yml | 3 ++- doc/docker.md | 6 +++--- Dockerfile => docker/openwec.Dockerfile | 0 3 files changed, 5 insertions(+), 4 deletions(-) rename Dockerfile => docker/openwec.Dockerfile (100%) 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