@content.setter<EOL><INDENT>def content(self, content):<DEDENT>
if self.cache_content:<EOL><INDENT>self.cached_content = b2u(content)<EOL><DEDENT>try:<EOL><INDENT>with self._open_dockerfile('<STR_LIT:wb>') as dockerfile:<EOL><INDENT>dockerfile.write(u2b(content))<EOL><DEDENT><DEDENT>except (IOError, OSError) as ex:<EOL><INDENT>logger.error("<STR_LIT>", ex)<EOL>raise<EOL><DEDENT>
Overwrite Dockerfile with specified content
:param content: string to be written to Dockerfile