Don't build in Dockerfile #58
Caching of dependencies is not possible otherwise
This commit is contained in:
parent
dc0080955d
commit
1f69530310
3 changed files with 4 additions and 12 deletions
|
@ -8,7 +8,5 @@ Dockerfile
|
|||
/photoprism
|
||||
docker-compose*
|
||||
/coverage.*
|
||||
.gitignore
|
||||
.dockerignore
|
||||
.idea
|
||||
.travis.yml
|
||||
.idea
|
|
@ -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
|
||||
|
|
|
@ -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 . .
|
Loading…
Reference in a new issue