GamerC0der commited on
Commit
c7a57fd
·
verified ·
1 Parent(s): 3f7dbe4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -2
Dockerfile CHANGED
@@ -1,6 +1,22 @@
1
  FROM postgres:16
 
2
  ENV POSTGRES_USER=myuser
3
  ENV POSTGRES_PASSWORD=mypassword
4
  ENV POSTGRES_DB=mydatabase
5
- EXPOSE 7860
6
- RUN echo "port=7860" >> /usr/share/postgresql/postgresql.conf.sample
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM postgres:16
2
+
3
  ENV POSTGRES_USER=myuser
4
  ENV POSTGRES_PASSWORD=mypassword
5
  ENV POSTGRES_DB=mydatabase
6
+
7
+ EXPOSE 7860 5000
8
+
9
+ RUN echo "port=7860" >> /usr/share/postgresql/postgresql.conf.sample
10
+
11
+ RUN apt-get update \
12
+ && apt-get install -y python3 python3-pip \
13
+ && pip3 install flask psycopg2-binary \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ WORKDIR /app
17
+ COPY app.py /app/app.py
18
+
19
+ COPY entrypoint.sh /entrypoint.sh
20
+ RUN chmod +x /entrypoint.sh
21
+
22
+ ENTRYPOINT ["/entrypoint.sh"]