ashwinR commited on
Commit
c2113b3
1 Parent(s): 82142f7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -42,8 +42,16 @@ COPY ./ .
42
  #RUN pip install -U -q pyngrok ipython psycopg2 alembic
43
 
44
  # Create PostgreSQL users and databases in the background
45
- RUN service redis-server start \
46
- && service postgresql start
 
 
 
 
 
 
 
 
47
 
48
  #RUN pg_ctl start -D /usr/local/pgsql/data -l logfile \
49
  # && psql -c "CREATE USER postadmin WITH PASSWORD 'postpass';" \
 
42
  #RUN pip install -U -q pyngrok ipython psycopg2 alembic
43
 
44
  # Create PostgreSQL users and databases in the background
45
+ #RUN service redis-server start \
46
+ # && service postgresql start
47
+ RUN apt-get update && apt-get install -y supervisor redis-server postgresql-12
48
+
49
+ # Copying supervisor configuration file to container
50
+ ADD supervisor.conf /etc/supervisor.conf
51
+
52
+ # Initializing redis and postgres services using supervisord
53
+ CMD ["supervisord","-c","supervisor.conf"]
54
+
55
 
56
  #RUN pg_ctl start -D /usr/local/pgsql/data -l logfile \
57
  # && psql -c "CREATE USER postadmin WITH PASSWORD 'postpass';" \