diff --git a/mingw/Dockerfile b/mingw/Dockerfile
index 5080a79d1e9ff56d8b5531ed87594b12d2f80072..eddbf0831ed4a4e7699f3160c7950b6e0272a4ff 100644
--- a/mingw/Dockerfile
+++ b/mingw/Dockerfile
@@ -1,4 +1,4 @@
-FROM fedora:20
+FROM fedora:21
 MAINTAINER opus@xiph.org
 
 # Linux build.
@@ -16,4 +16,4 @@ RUN git clone https://git.xiph.org/opusfile.git
 WORKDIR opusfile
 RUN git pull
 RUN make -C mingw
-RUN ./configure --host=i686-w64-mingw32 --prefix=${PWD}/mingw PKG_CONFIG_PATH=${PWD}/mingw/lib/pkgconfig && make && make check && make install
+RUN ./autogen.sh && ./configure --host=i686-w64-mingw32 --prefix=${PWD}/mingw PKG_CONFIG_PATH=${PWD}/mingw/lib/pkgconfig && make && make check && make install