Files
2024-09-12 17:05:56 -06:00

21 lines
513 B
Docker

FROM python:3.10-slim
EXPOSE 8002
EXPOSE 8003
WORKDIR /app
# Copy source code
COPY . .
# Install libraries for necessary python package builds
RUN apt-get clean && apt-get update \
&& apt-get --no-install-recommends install build-essential python3-dev libpq-dev curl -y \
&& pip install --no-cache-dir --upgrade pip \
&& apt-get -yq update && apt-get -yqq install ssh \
&& apt-get clean \
&& pip install -r requirements.txt
# Run the deploy.py script
ENTRYPOINT ["python", "./deploy.py"]