Dnf with Fedora 24 and 25 with docker does not work anymore

With both versions I get this error when building the docker container:

Sending build context to Docker daemon 2.048 kB
Step 1 : FROM fedora:25
—> 79efba3f3ba8
Step 2 : RUN dnf install -y gcc gcc-c++ cmake automake autoconf wget boost-devel doxygen
—> Running in 0b43e4b33844
Error: Failed to synchronize cache for repo 'updates’
The command ‘/bin/sh -c dnf install -y gcc gcc-c++ cmake automake autoconf wget boost-devel doxygen’ returned a non-zero code: 1

Can anyone help?

Did you run dnf update first?