darkfire514 commited on
Commit
33c5477
·
verified ·
1 Parent(s): 03246e2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM postgres:17
2
+
3
+ ENV POSTGRES_USER=admin
4
+ ENV POSTGRES_DB=appdb
5
+ ENV PGDATA=/data/postgres
6
+ ENV ADMINER_VERSION=4.8.1
7
+
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ curl \
10
+ php \
11
+ php-pgsql \
12
+ ca-certificates \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ RUN curl -L -o /adminer.php https://github.com/vrana/adminer/releases/download/v${ADMINER_VERSION}/adminer-${ADMINER_VERSION}.php
16
+
17
+ COPY start.sh /start.sh
18
+ RUN chmod +x /start.sh
19
+
20
+ EXPOSE 5432
21
+ EXPOSE 7860
22
+
23
+ CMD ["/start.sh"]