Updated code to run based on entrypoint.sh

This commit is contained in:
kuldeep.k@cisinlabs.com 2022-02-04 22:46:58 +05:30
parent 9e182c4b94
commit 65bedd6356
3 changed files with 4 additions and 6 deletions

View File

@ -14,4 +14,5 @@ COPY ./requirements.txt .
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
# copy project # copy project
COPY . . COPY . .
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]

View File

@ -4,12 +4,7 @@ services:
web: web:
build: . build: .
command: python main.py command: python main.py
volumes:
- mailsend_server:/usr/src/app/
ports: ports:
- 8081:8081 - 8081:8081
env_file: env_file:
- ./config.ini - ./config.ini
volumes:
mailsend_server:

2
entrypoint.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
python main.py