-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (28 loc) · 820 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM citusdata/citus as database
#COPY ../dumpFile.sql /docker-entrypoint-initdb.d/
FROM python:3.11 as client_env
COPY clientCode/requirements.txt /home/app/
WORKDIR /home/app
RUN pip install -r requirements.txt
FROM python:3.11 as server_env
COPY ServerCode/requirements.txt /home/app/
WORKDIR /home/app
RUN pip install -r requirements.txt
FROM server_env as server
COPY ../ServerCode/ /home/app/code
WORKDIR /home/app/code
ENTRYPOINT ["python3","flaskApi.py"]
CMD ["bash"]
FROM server_env as server_dev
WORKDIR /home/app/code
ENTRYPOINT ["python3","flaskApi.py"]
CMD ["bash"]
FROM client_env as client_dev
WORKDIR /home/app/code
ENTRYPOINT ["python3","app.py"]
CMD ["bash"]
FROM client_env as client
COPY ../clientCode/ /home/app/code
WORKDIR /home/app/code
ENTRYPOINT ["python3","app.py"]
CMD ["bash"]