Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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';" \
|