🌐 AI搜索 & 代理 主页
Skip to content

Commit 2766180

Browse files
committed
stuff
1 parent ba6c7f0 commit 2766180

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
FROM ubuntu:20.04
2+
MAINTAINER docker@postgresml.com
3+
24
RUN apt-get update
35
ARG DEBIAN_FRONTEND=noninteractive
46
ENV TZ=Etc/UTC
57
RUN apt-get install -y postgresql-plpython3-12 python3 python3-pip postgresql-12 tzdata sudo
8+
69
COPY --chown=postgres:postgres . /app
710
WORKDIR /app/pgml
11+
12+
# Install pgml extension globally.
813
RUN python3 setup.py install
14+
15+
# Listen on 0.0.0.0 and allow 'root' to connect without a password.
16+
# Please modify for production deployments accordingly.
917
RUN cp /app/docker/postgresql.conf /etc/postgresql/12/main/postgresql.conf
1018
RUN cp /app/docker/pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
19+
1120
WORKDIR /app
1221
ENTRYPOINT ["/bin/bash", "/app/docker/entrypoint.sh"]

0 commit comments

Comments
 (0)