mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Simplify Dockerfile by removing multibuild
- Install exiftool dependency directly in the miniconda image
This commit is contained in:
parent
33bc62dc19
commit
52e701b3c2
1 changed files with 1 additions and 6 deletions
|
@ -1,15 +1,10 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM ubuntu:18.04 AS os-dependencies
|
FROM continuumio/miniconda3:latest
|
||||||
|
|
||||||
# Install system dependencies.
|
# Install system dependencies.
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get -y install libimage-exiftool-perl
|
apt-get -y install libimage-exiftool-perl
|
||||||
|
|
||||||
FROM continuumio/miniconda3:4.10.3p0-alpine
|
|
||||||
|
|
||||||
# From the previous image, copy exiftool into this image.
|
|
||||||
COPY --from=os-dependencies /usr/bin/exiftool /usr/bin/exiftool
|
|
||||||
|
|
||||||
# Add the local code to the /app directory and set it to be the working directory.
|
# Add the local code to the /app directory and set it to be the working directory.
|
||||||
# Since we mount the /app directory as a volume in docker-compose.yml, this
|
# Since we mount the /app directory as a volume in docker-compose.yml, this
|
||||||
# allows us to automatically update the code in the Docker image when it's changed.
|
# allows us to automatically update the code in the Docker image when it's changed.
|
||||||
|
|
Loading…
Reference in a new issue