From 59e80ff1fe1951dfa9d6b337af4163276a2a21d8 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Wed, 29 Jun 2022 01:36:34 +0800 Subject: [PATCH] move Dockerfile to workspace root --- .github/workflows/build-docker-image.yml | 2 -- docker/Dockerfile => Dockerfile | 0 README.md | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) rename docker/Dockerfile => Dockerfile (100%) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 52f9a47e29c7..2b1f3edb8a4b 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -34,5 +34,3 @@ jobs: target: ${{ matrix.bin }} tags: ${{ steps.metadata.outputs.tags }} push: true - context: . - file: ./docker/Dockerfile diff --git a/docker/Dockerfile b/Dockerfile similarity index 100% rename from docker/Dockerfile rename to Dockerfile diff --git a/README.md b/README.md index 66e7bd9680fd..866611e03fa3 100644 --- a/README.md +++ b/README.md @@ -115,8 +115,8 @@ docker pull ghcr.io/shadowsocks/ssserver-rust:latest If you want to build the Docker image yourself, you need to use the [BuildX](https://docs.docker.com/buildx/working-with-buildx/). ```bash -docker buildx build -t shadowsocks/ssserver-rust:latest -t shadowsocks/ssserver-rust:v1.11.1 --target ssserver ./docker -docker buildx build -t shadowsocks/sslocal-rust:latest -t shadowsocks/sslocal-rust:v1.11.1 --target sslocal ./docker +docker buildx build -t shadowsocks/ssserver-rust:latest -t shadowsocks/ssserver-rust:v1.11.1 --target ssserver . +docker buildx build -t shadowsocks/sslocal-rust:latest -t shadowsocks/sslocal-rust:v1.11.1 --target sslocal . ``` #### Run the container