SorboBot / Dockerfile
leo-bourrel's picture
feat: postgreSQL docker image
26b6fc7
raw
history blame
371 Bytes
FROM postgres:14.3
WORKDIR /app
RUN apt update && \
apt install -y \
python3 \
python3-pip \
libpq-dev \
htop
COPY ./ /app/
RUN pip3 install -r ./requirements.txt
EXPOSE 7860
COPY "execution.sh" "/usr/local/bin/"
ENTRYPOINT ["execution.sh"]
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
STOPSIGNAL SIGINT
CMD ["postgres"]