GamerC0der commited on
Commit
eec7f37
·
verified ·
1 Parent(s): b4bbf66

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -4,9 +4,9 @@ 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 \
@@ -15,7 +15,6 @@ RUN apt-get update \
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
 
 
4
  ENV POSTGRES_PASSWORD=mypassword
5
  ENV POSTGRES_DB=mydatabase
6
 
7
+ EXPOSE 5432 5000
8
 
9
+ RUN sed -i '/^#port =/c\port = 5432' /usr/share/postgresql/postgresql.conf.sample
10
 
11
  RUN apt-get update \
12
  && apt-get install -y python3 python3-pip \
 
15
 
16
  WORKDIR /app
17
  COPY app.py /app/app.py
 
18
  COPY entrypoint.sh /entrypoint.sh
19
  RUN chmod +x /entrypoint.sh
20