Added few dependencies to Dockerfile

This commit is contained in:
Frédérick Pruneau 2025-11-14 15:14:11 -05:00
parent 39359b511d
commit 5d3e6d9498

View File

@ -1,20 +1,28 @@
# targo-frontend # targo-frontend
FROM node:22 FROM node:22
# Set working directory inside container # Set working directory inside container
WORKDIR /app WORKDIR /app
# Set environment variables # Adding Quasar
ENV VITE_TARGO_BACKEND_URL="http://targo-backend:3000" RUN yarn global add @quasar/cli
# Copy the code # Set environment variables
COPY . . ENV VITE_TARGO_BACKEND_URL="http://targo-backend:3000"
# Install dependencies # Copy the code
RUN npm install COPY . .
# Expose Quasar dev port # Install dependencies
EXPOSE 9000 RUN npm install
# Default command # Linting and formating
CMD ["quasar", "dev"] RUN yarn
RUN yarn lint
RUN yarn format
# Expose Quasar dev port
EXPOSE 9000
# Default command
CMD ["quasar", "dev"]