Servicii pe docker cu diverse aplicatii: python, node, php, .net

This commit is contained in:
2025-12-12 09:00:05 +00:00
parent 498b01ddd1
commit 3525523167
41 changed files with 468 additions and 9 deletions

17
www/script_python2.py Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env python3
from http.server import BaseHTTPRequestHandler, HTTPServer
class Handler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Content-Type", "text/plain; charset=utf-8")
self.end_headers()
self.wfile.write(b"Salut! Server Python 2 ruleaza pe portul 8088")
def main():
server = HTTPServer(("0.0.0.0", 8088), Handler)
print("Python server pornit pe http://0.0.0.0:8088")
server.serve_forever()
if __name__ == "__main__":
main()