Spaces:
Sleeping
Sleeping
File size: 371 Bytes
26b6fc7 1b0e8b4 26b6fc7 1b0e8b4 26b6fc7 1b0e8b4 26b6fc7 1b0e8b4 26b6fc7 1b0e8b4 26b6fc7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
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"]
|