Compacted dockerfile to decrease size and layers