AutoDelete icon indicating copy to clipboard operation
AutoDelete copied to clipboard

Dockerfile build issue

Open samcro1967 opened this issue 3 years ago • 1 comments

My daily docker builds started failing a couple of days ago. Any ideas?

docker build -t autodeletetest https://github.com/riking/AutoDelete.git

Current default time zone: 'Etc/UTC'
Local time is now:      Thu Jun 23 13:03:15 UTC 2022.
Universal Time is now:  Thu Jun 23 13:03:15 UTC 2022.
Run 'dpkg-reconfigure tzdata' if you wish to change it.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.30.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.
The command '/bin/sh -c apt update -y --allow-insecure-repositories && apt upgrade -y &&   apt install -y git &&   apt -y clean &&   go get -u -v github.com/riking/AutoDelete/cmd/autodelete' returned a non-zero code: 1

samcro1967 avatar Jun 23 '22 13:06 samcro1967

@samcro1967 You could use the same docker image that I use, it works like a charm, and no dockerfile needed!

Here is the run command. docker run --name AutoDelete -d --restart=always -p 2202:2202/tcp -v PATH/TO/CONFIG/config.yml:/autodelete/config.yml -v PATH/TO/DATA/data/:/autodelete/data/ jacoknapp/autodelete-discord:latest

https://github.com/jacoknapp/AutoDelete

zluckytraveler avatar Sep 11 '22 19:09 zluckytraveler