Browse Source

latest changes

master
Abhishek Balam 1 year ago
parent
commit
8132feeb3d
4 changed files with 10 additions and 6 deletions
  1. 1
    1
      Dockerfile
  2. 2
    4
      docker-compose.yml
  3. 1
    1
      run
  4. 6
    0
      run1.sh

+ 1
- 1
Dockerfile View File

@@ -19,4 +19,4 @@ EXPOSE 8000

RUN chmod +x /home/app/run

ENTRYPOINT ["./run"]
ENTRYPOINT ["/home/app/run"]

+ 2
- 4
docker-compose.yml View File

@@ -8,9 +8,6 @@ services:
app:
# build: .
image: 'keeplinkin_app:latest'
entrypoint:
- 'bash'
- 'run'
environment:
- FLASK_APP=keeplinkin
- FLASK_ENV=production
@@ -32,4 +29,5 @@ services:
volumes:
- './db:/usr/local/etc/redis'
networks:
- keeplinkin
- keeplinkin
tty: true

+ 1
- 1
run View File

@@ -3,4 +3,4 @@
set -e
export PYTHONPATH=/home/app
cd /home/app
bash -c 'exec gunicorn -w 4 -b 0.0.0.0:8000 keeplinkin:app'
exec gunicorn -w 4 -b 0.0.0.0:8000 keeplinkin:app

+ 6
- 0
run1.sh View File

@@ -0,0 +1,6 @@
#! /bin/bash

set -e
export PYTHONPATH=/home/app
cd /home/app
bash -c 'exec gunicorn -w 4 -b 0.0.0.0:8000 keeplinkin:app'

Loading…
Cancel
Save