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