Merge branch 'main' of git.targo.ca:Targo/targo_frontend into dev/nicolas/timesheet-gui-refactor
This commit is contained in:
commit
3b0652fb8b
47
Dockerfile
47
Dockerfile
|
|
@ -1,20 +1,27 @@
|
|||
# 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
|
||||
|
||||
# Expose Quasar dev port
|
||||
EXPOSE 9000
|
||||
|
||||
# Default command
|
||||
CMD ["quasar", "dev"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user