POMS-QA-LogicLLM / Dockerfile
npc0's picture
Update Dockerfile
f49a514 verified
raw
history blame
535 Bytes
FROM python:3.11-alpine
RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
RUN apk add git
RUN apk add swi-prolog
RUN apk add --no-cache gcc musl-dev python3-dev
WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# RUN echo 1 | swipl pack install janus
RUN swipl -g "pack_install('janus-1.0.tgz')" -t halt
RUN python -c "import janus_swi as janus"
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
CMD ["python", "app.py"]