Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile build issue #44

Open
samcro1967 opened this issue Jun 23, 2022 · 1 comment
Open

Dockerfile build issue #44

samcro1967 opened this issue Jun 23, 2022 · 1 comment

Comments

@samcro1967
Copy link

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
@zluckytraveler
Copy link

zluckytraveler commented Sep 11, 2022

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants