diff --git a/docker-compose.yml b/docker-compose.yml index 4c8798f..a13fc36 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,13 +2,11 @@ version: "3.8" services: app: - build: . + image: demo:latest container_name: python_app restart: always ports: - "8000:8000" environment: - PYTHONUNBUFFERED=1 - volumes: - - .:/app command: python main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..fbb08ba --- /dev/null +++ b/main.py @@ -0,0 +1 @@ +print("hello py") \ No newline at end of file