mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 09:25:06 +01:00
25 lines
699 B
Docker
25 lines
699 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM python:3.10-slim-bullseye
|
|
LABEL org.opencontainers.image.source https://github.com/debanjum/khoj
|
|
|
|
# Install System Dependencies
|
|
RUN apt-get update -y && \
|
|
apt-get -y install libimage-exiftool-perl python3-pyqt5
|
|
|
|
# Copy Application to Container
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
# Install Python Dependencies
|
|
RUN pip install --upgrade pip && \
|
|
pip install --upgrade .
|
|
|
|
# https://stackoverflow.com/questions/64776990/python-docker-no-module-found
|
|
ENV PYTHONPATH /app
|
|
|
|
# Run the Application
|
|
# There are more arguments required for the application to run,
|
|
# but these should be passed in through the docker-compose.yml file.
|
|
ARG PORT
|
|
EXPOSE ${PORT}
|
|
ENTRYPOINT ["khoj"]
|