# Apply Xilinx's Y2K22 patch
# Ref: https://adaptivesupport.amd.com/s/article/76960
# Kept this small file with the final image, just in case for future reference
COPY y2k22_patch-1.2.zip /opt/EBox
RUN unzip /opt/EBox/y2k22_patch-1.2.zip -d /opt/Xilinx && \
export LD_LIBRARY_PATH=$PWD/Vivado/2020.1/tps/lnx64/python-2.7.16/lib/ && \
Vivado/2020.1/tps/lnx64/python-2.7.16/bin/python y2k22_patch/patch.py
Don't forget @alperyazar !