From 63de1cc6425893591f8d78111512f0bb068cd595 Mon Sep 17 00:00:00 2001 From: Javier Feliz Date: Wed, 16 Jul 2025 19:33:47 -0400 Subject: [PATCH] Fix dockerfile --- Dockerfile | 7 ++++++- Makefile | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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