basharin_sevastyan_lab_2 #22

Merged
Alexey merged 2 commits from basharin_sevastyan_lab_2 into main 2023-12-05 22:23:56 +04:00
8 changed files with 41 additions and 0 deletions
Showing only changes of commit d45fcb79c1 - Show all commits

View File

View File

@ -0,0 +1,5 @@
FROM python:3.11
COPY . .
COPY var/data /var/data
COPY var/result /var/result
CMD ["python", "app.py"]

View File

@ -0,0 +1,6 @@
def main():
pass
if __name__ == "__main__":
main()

View File

@ -0,0 +1,5 @@
FROM python:3.11
COPY . .
COPY var/data /var/data
COPY var/result /var/result
CMD ["python", "app.py"]

View File

@ -0,0 +1,6 @@
def main():
pass
if __name__ == "__main__":
main()

View File

@ -0,0 +1,19 @@
version: "3"
services:
worker-1:
build:
context: /app1
dockerfile: Dockerfile
volumes:
- ./data:/var/data
- ./result:/var/result
worker-2:
depends_on:
- worker-1
build:
context: /app2
dockerfile: Dockerfile
volumes:
- ./result:/var/data
- ./result:/var/result