diff --git a/Dockerfile b/Dockerfile index 4a66b30..b22c8a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,9 @@ FROM gitgud.foo/thegrind/laravel-base:latest # Get the app in there -COPY . /app \ No newline at end of file +WORKDIR /app +COPY . . + +# Install deps and built front end assets +RUN composer install --no-interaction --prefer-dist --optimize-autoloader +RUN npm install && npm run build \ No newline at end of file diff --git a/Makefile b/Makefile index adae006..a15b328 100644 --- a/Makefile +++ b/Makefile @@ -21,3 +21,7 @@ rebuild: docker-publish: docker image tag flowtodo:latest gitgud.foo/thegrind/flowtodo:$(VERSION) docker push gitgud.foo/thegrind/flowtodo:$(VERSION) + +test-remote-image: + docker pull gitgud.foo/thegrind/flowtodo:latest + docker run --rm -p 8889:8000 gitgud.foo/thegrind/flowtodo:latest