2022-01-23 19:57:28 +00:00
|
|
|
# syntax=docker/dockerfile:1
|
2022-08-03 20:00:20 +00:00
|
|
|
FROM python:3.10-slim-bullseye
|
2022-08-03 23:17:01 +00:00
|
|
|
LABEL org.opencontainers.image.source https://github.com/debanjum/khoj
|
2022-01-23 19:57:28 +00:00
|
|
|
|
2022-08-03 20:00:20 +00:00
|
|
|
# Install System Dependencies
|
2022-01-23 19:57:28 +00:00
|
|
|
RUN apt-get update -y && \
|
2022-09-14 10:22:27 +00:00
|
|
|
apt-get -y install python3-pyqt5
|
2022-01-23 19:57:28 +00:00
|
|
|
|
2022-08-03 20:00:20 +00:00
|
|
|
# Copy Application to Container
|
|
|
|
COPY . /app
|
2022-01-24 19:08:55 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2022-08-03 20:00:20 +00:00
|
|
|
# Install Python Dependencies
|
|
|
|
RUN pip install --upgrade pip && \
|
|
|
|
pip install --upgrade .
|
2022-01-23 19:57:28 +00:00
|
|
|
|
2022-08-03 20:00:20 +00:00
|
|
|
# Run the Application
|
|
|
|
# There are more arguments required for the application to run,
|
2022-01-24 19:08:55 +00:00
|
|
|
# but these should be passed in through the docker-compose.yml file.
|
2022-08-03 20:00:20 +00:00
|
|
|
ARG PORT
|
|
|
|
EXPOSE ${PORT}
|
|
|
|
ENTRYPOINT ["khoj"]
|