Fix new Docker runtime errors
This commit is contained in:
parent
a156af40e2
commit
eaad404f55
|
@ -66,9 +66,16 @@ RUN go build -v -o photoview .
|
||||||
|
|
||||||
### Copy api and ui to production environment ###
|
### Copy api and ui to production environment ###
|
||||||
FROM debian:buster
|
FROM debian:buster
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY api/data /app/data
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
|
||||||
|
# Install runtime dependencies
|
||||||
|
RUN apt-get install -y libdlib19
|
||||||
|
|
||||||
# Install darktable for converting RAW images, and ffmpeg for encoding videos
|
# Install darktable for converting RAW images, and ffmpeg for encoding videos
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y darktable; exit 0
|
RUN apt-get install -y darktable; exit 0
|
||||||
RUN apt-get install -y ffmpeg; exit 0
|
RUN apt-get install -y ffmpeg; exit 0
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
@ -51,7 +51,7 @@ func (r *queryResolver) MyFaceGroups(ctx context.Context, paginate *models.Pagin
|
||||||
|
|
||||||
imageFaceQuery := r.Database.
|
imageFaceQuery := r.Database.
|
||||||
Joins("Media").
|
Joins("Media").
|
||||||
Where("media.album_id IN (?)", userAlbumIDs)
|
Where("Media.album_id IN (?)", userAlbumIDs)
|
||||||
|
|
||||||
var imageFaces []*models.ImageFace
|
var imageFaces []*models.ImageFace
|
||||||
if err := imageFaceQuery.Find(&imageFaces).Error; err != nil {
|
if err := imageFaceQuery.Find(&imageFaces).Error; err != nil {
|
||||||
|
|
Loading…
Reference in New Issue