Setting up dockerfile for factory