From c99dbd8efad53fd8896ceea74ee563f7e26ffe7b Mon Sep 17 00:00:00 2001 From: "OP (oppenheimer)" <21008429+Ompragash@users.noreply.github.com> Date: Thu, 22 Aug 2024 22:41:06 +0530 Subject: [PATCH] Update Dockerfile.linux.amd64 --- docker/docker/Dockerfile.linux.amd64 | 40 +++++----------------------- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/docker/docker/Dockerfile.linux.amd64 b/docker/docker/Dockerfile.linux.amd64 index b992d4e..e3f5e1c 100644 --- a/docker/docker/Dockerfile.linux.amd64 +++ b/docker/docker/Dockerfile.linux.amd64 @@ -1,40 +1,12 @@ -FROM fedora - -RUN dnf -y install \ - make \ - golang \ - bats \ - btrfs-progs-devel \ - device-mapper-devel \ - glib2-devel \ - gpgme-devel \ - libassuan-devel \ - libseccomp-devel \ - git \ - bzip2 \ - go-md2man \ - runc \ - containers-common \ - skopeo-containers - -# Workaround - the first install somehow leaves the golang in a bad state -RUN dnf -y install golang - -RUN mkdir /root/buildah && \ - cd /root/buildah && \ - git clone https://github.com/harness/buildah.git ./src/github.com/containers/buildah - -RUN cd /root/buildah/src/github.com/containers/buildah && make && sudo make install - - - FROM quay.io/buildah/stable:v1.23.0 +# Set up the working directory USER build WORKDIR /home/build RUN export STORAGE_DRIVER=vfs -# Add plugin binary -ADD release/linux/amd64/drone-docker /bin/ -COPY --from=0 /root/buildah/src/github.com/containers/buildah/bin/. /bin/ -ENTRYPOINT ["/bin/drone-docker"] \ No newline at end of file +# Add the plugin binary +ADD release/linux/amd64/drone-docker /bin/ + +# Set the entrypoint to the plugin binary +ENTRYPOINT ["/bin/drone-docker"]