From 5d3e6d9498e74ca111a1ce13653d80f35fa0744d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9rick=20Pruneau?= Date: Fri, 14 Nov 2025 15:14:11 -0500 Subject: [PATCH] Added few dependencies to Dockerfile --- Dockerfile | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c8c234..016a39a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,28 @@ -# targo-frontend -FROM node:22 - -# Set working directory inside container -WORKDIR /app - -# Set environment variables -ENV VITE_TARGO_BACKEND_URL="http://targo-backend:3000" - -# Copy the code -COPY . . - -# Install dependencies -RUN npm install - -# Expose Quasar dev port -EXPOSE 9000 - -# Default command -CMD ["quasar", "dev"] +# targo-frontend +FROM node:22 + +# Set working directory inside container +WORKDIR /app + +# Adding Quasar +RUN yarn global add @quasar/cli + +# Set environment variables +ENV VITE_TARGO_BACKEND_URL="http://targo-backend:3000" + +# Copy the code +COPY . . + +# Install dependencies +RUN npm install + +# Linting and formating +RUN yarn +RUN yarn lint +RUN yarn format + +# Expose Quasar dev port +EXPOSE 9000 + +# Default command +CMD ["quasar", "dev"]