mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
5da6a5e669
- Previous state Ideally docker image should use latest app code available locally. But this is better than the previous state where the latest Docker image was being built using older khoj package published to pypi This would happen because the workflow to publish the khoj-assistant pypi package runs in parallel to the dockerize workflow so the latest khoj pypi package isn't published before the latest docker image is built on master - Updated state Now at least the docker image published via the dockerize github workflow will be built using the latest khoj code on github
18 lines
544 B
Docker
18 lines
544 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM ubuntu:kinetic
|
|
LABEL org.opencontainers.image.source https://github.com/khoj-ai/khoj
|
|
|
|
# Install System Dependencies
|
|
RUN apt update -y && \
|
|
apt -y install python3-pip python3-pyqt6 git
|
|
|
|
# Install Python Dependencies
|
|
RUN pip install --upgrade pip && \
|
|
pip install git+https://github.com/khoj-ai/khoj.git
|
|
|
|
# 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"]
|