Skip to content

Commit 9959c5e

Browse files
committedMay 24, 2021
Docker Project setup
* Modified Dockerfiles and .yml file to support current version of the project
1 parent ef07862 commit 9959c5e

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed
 

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ server/test-output.xml
117117

118118
#vscode
119119
**.vscode
120-
120+
docker-env
121121
run-dev-client.sh
122122
run-dev-server.sh

‎client/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ RUN npm install react-scripts@3.4.1 -g --silent
1616
COPY . ./
1717

1818
# start app
19-
CMD ["npm", "start"]
19+
CMD ["npm", "run", "start"]

‎docker-compose.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
flask:
44
build: ./server
55
env_file:
6-
- ./server/docker-env
6+
- ./server/docker-env
77
ports:
88
- "5000:5000"
99
react:
@@ -12,5 +12,3 @@ services:
1212
#- ./client/react-env
1313
ports:
1414
- "3000:3000"
15-
16-

‎server/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM python:3.8
33
COPY . /app
44
WORKDIR /app
55

6-
RUN pip install -r requirements.txt
6+
RUN pip install -r requirements.txt
7+
RUN pip install -e .
78
EXPOSE 5000
89
ENTRYPOINT [ "python" ]
9-
CMD [ "app.py" ]
10-
10+
CMD [ "inquire/__init__.py" ]

0 commit comments

Comments
 (0)
Please sign in to comment.