Don't build in Dockerfile #58

Caching of dependencies is not possible otherwise
This commit is contained in:
Michael Mayer 2018-11-09 12:46:56 +01:00
parent dc0080955d
commit 1f69530310
3 changed files with 4 additions and 12 deletions

View file

@ -8,7 +8,5 @@ Dockerfile
/photoprism
docker-compose*
/coverage.*
.gitignore
.dockerignore
.idea
.travis.yml
.idea

View file

@ -14,8 +14,8 @@ before_script:
- docker-compose -f docker-compose.travis.yml up -d --build
script:
- if [ "$TRAVIS_BRANCH" == "develop" ]; then docker-compose -f docker-compose.travis.yml exec photoprism make migrate test-codecov; fi
- if [ "$TRAVIS_BRANCH" != "develop" ]; then docker-compose -f docker-compose.travis.yml exec photoprism make migrate test; fi
- if [ "$TRAVIS_BRANCH" == "develop" ]; then docker-compose -f docker-compose.travis.yml exec photoprism make all migrate test-codecov; fi
- if [ "$TRAVIS_BRANCH" != "develop" ]; then docker-compose -f docker-compose.travis.yml exec photoprism make all migrate test; fi
after_script:
- docker-compose -f docker-compose.travis.yml down

View file

@ -2,10 +2,4 @@ FROM photoprism/development:20181109
# Set up project directory
WORKDIR "/go/src/github.com/photoprism/photoprism"
COPY . .
# Build PhotoPrism
RUN make all install
# Start PhotoPrism server
CMD photoprism start
COPY . .