Fix "install-assets" target in Makefile

This commit is contained in:
Michael Mayer 2019-06-06 16:40:32 +02:00
parent 5bd85e694d
commit b05e77cb10
3 changed files with 8 additions and 6 deletions

View file

@ -24,12 +24,15 @@ start:
migrate:
go run cmd/photoprism/photoprism.go migrate
install-bin:
$(info Building prodution binary...)
scripts/build.sh prod /usr/local/bin/$(BINARY_NAME)
install-assets:
$(info Installing assets in /srv/photoprism...)
mkdir -p /srv/photoprism/config
mkdir -p /srv/photoprism/photos
mkdir -p /srv/photoprism/cache
mkdir -p /srv/photoprism/resources
mkdir -p /srv/photoprism/config
mkdir -p /srv/photoprism/resources/database
cp -r assets/resources/static assets/resources/templates assets/resources/nasnet /srv/photoprism/resources
rsync -a -v --ignore-existing assets/config/*.yml /srv/photoprism/config
find /srv/photoprism -name '.*' -type f -delete
dep-js:

View file

@ -1,5 +1,4 @@
debug: false
darktable-cli: /usr/bin/darktable-cli
assets-path: /srv/photoprism
config-path: /srv/photoprism/config
resources-path: /srv/photoprism/resources

View file

@ -10,13 +10,13 @@ RUN make all install
# Base base image as photoprism/development
FROM ubuntu:18.04
# Set environment variables
ENV DEBIAN_FRONTEND noninteractive
ENV TF_CPP_MIN_LOG_LEVEL 2
ENV PHOTOPRISM_CONFIG_FILE /srv/photoprism/config/photoprism.yml
WORKDIR /srv/photoprism
# Hide TensorFlow warnings
ENV TF_CPP_MIN_LOG_LEVEL 2
# Install additional distribution packages
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \