[Help] 404 - Some indexes Failed to Download

I’m trying to run a dev environment on a on my M1 Air with docker-compose, but it gives me the following error. I’m not too well versed with Docker or devops and I can’t find a solution for this.

I’ve used this exact config before on the same macbook and everything worked. The only difference this time is that I’m on MacOS Sonoma

If someone could point me in the right direction I’d appreciate it very much

Dockerfile

FROM node:12

RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get update && \
    apt-get install -y \
        bash \
        zip \
        jq \
        nodejs \
        yarn \
        python \
        python-dev \
        python-pip \
        python-setuptools \
        groff \
        less \
    && pip install --upgrade awscli \
    && apt-get clean

➜  git:(main) docker-compose up -d
[+] Building 3.3s (12/15)                                                                                         docker:desktop-linux
 => [console internal] load .dockerignore                                                                                 0.0s
 => => transferring context: 2B                                                                                                   0.0s
 => [console internal] load build definition from Dockerfile.console                                                              0.0s
 => => transferring dockerfile: 403B                                                                                              0.0s
 => [console internal] load metadata for docker.io/library/node:12                                                                2.2s
 => [api internal] load .dockerignore                                                                                             0.0s
 => => transferring context: 2B                                                                                                   0.0s
 => [api internal] load build definition from Dockerfile.rails                                                                    0.0s
 => => transferring dockerfile: 164B                                                                                              0.0s
 => [api internal] load metadata for docker.io/library/ruby:2.5.9                                                                 2.3s
 => [console auth] library/node:pull token for registry-1.docker.io                                                               0.0s
 => [api auth] library/ruby:pull token for registry-1.docker.io                                                                   0.0s
 => CACHED [console 1/4] FROM docker.io/library/node:12@sha256:01627afeb110b3054ba4a1405541ca095c8bfca1cb6f2be9479c767a2711879e   0.0s
 => ERROR [console 2/4] RUN apt-get update                                                                                        1.1s
 => CACHED [api 1/3] FROM docker.io/library/ruby:2.5.9@sha256:ecc3e4f5da13d881a415c9692bb52d2b85b090f38f4ad99ae94f932b3598444b    0.0s
 => CANCELED [api 2/3] RUN gem install bundler -v 2.1.4                                                                           0.9s
------
 > [console 2/4] RUN apt-get update:
0.309 Ign:1 http://deb.debian.org/debian stretch InRelease
0.309 Ign:2 http://security.debian.org/debian-security stretch/updates InRelease
0.334 Ign:3 http://deb.debian.org/debian stretch-updates InRelease
0.334 Ign:4 http://security.debian.org/debian-security stretch/updates Release
0.359 Ign:5 http://deb.debian.org/debian stretch Release
0.359 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.384 Ign:7 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.395 Ign:8 http://deb.debian.org/debian stretch-updates Release
0.410 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.420 Ign:9 http://deb.debian.org/debian stretch/main arm64 Packages
0.435 Ign:7 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.449 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.461 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.474 Ign:11 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.486 Ign:7 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.498 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.511 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.522 Ign:9 http://deb.debian.org/debian stretch/main arm64 Packages
0.536 Ign:7 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.547 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.561 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.572 Ign:11 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.586 Ign:7 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.597 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.612 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.624 Ign:9 http://deb.debian.org/debian stretch/main arm64 Packages
0.639 Err:7 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.639   404  Not Found
0.650 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.675 Ign:11 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.699 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.725 Ign:9 http://deb.debian.org/debian stretch/main arm64 Packages
0.750 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.775 Ign:11 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.801 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.826 Ign:9 http://deb.debian.org/debian stretch/main arm64 Packages
0.853 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.879 Ign:11 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.903 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.929 Err:9 http://deb.debian.org/debian stretch/main arm64 Packages
0.929   404  Not Found
0.953 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.978 Err:11 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.978   404  Not Found
1.003 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
1.008 Reading package lists...
1.021 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
1.021 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
1.021 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
1.021 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-arm64/Packages  404  Not Found
1.021 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-arm64/Packages  404  Not Found
1.021 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-arm64/Packages  404  Not Found
1.021 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
failed to solve: process "/bin/sh -c apt-get update" did not complete successfully: exit code: 100```