Dockerfile for Windows and Linux OS at a time

I want to run my Test scripts inside both Windows and Linux based docker images at a time. For that do i need to have two separate docker files or can i specify everything in a single Dockerfile by an if statement.?

no IF in a dockerfile