iris-at-text2sparql / Dockerfile
Alex Latipov
Clear inherited Virtuoso entrypoint for HF app boot
9949bd0
raw
history blame contribute delete
816 Bytes
FROM openlink/virtuoso-opensource-7:latest
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV APP_HOME=/app
ENV PYTHONPATH=/app
ENV VIRTUAL_ENV=/opt/venv
ENV PATH=/opt/venv/bin:/opt/virtuoso-opensource/bin:${PATH}
WORKDIR ${APP_HOME}
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 \
python3-venv \
python3-pip \
curl \
rsync \
ca-certificates \
&& python3 -m venv "${VIRTUAL_ENV}" \
&& "${VIRTUAL_ENV}/bin/pip" install --no-cache-dir --upgrade pip \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ${APP_HOME}/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . ${APP_HOME}
EXPOSE 7860
ENTRYPOINT []
CMD ["bash", "scripts/hf_space_boot_dispatch.sh"]