File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020 - name : Build and start services with Docker Compose (CI Mode)
2121 run : |
22- CI=false COMMAND="npx serve -s build" docker compose up -d --build
22+ CI=true COMMAND="npx serve -s build" docker compose up -d --build
2323
2424 - name : Check running containers
2525 run : docker ps -a
Original file line number Diff line number Diff line change 1919
2020 - name : Build and start services with Docker Compose (CI Mode)
2121 run : |
22- CI=true COMMAND="npx serve -s build" docker compose up -d --build
22+ CI=true LINT=true COMMAND="npx serve -s build" docker compose up -d --build
2323
2424 - name : Check running containers
2525 run : docker ps -a
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ WORKDIR /app
33COPY my-app .
44RUN npm ci
55ARG CI=false
6+ ARG LINT=false
67RUN if [ "$CI" = "true" ]; then npm run build; fi
7- RUN if [ "$CI " = "true" ]; then npm run lint; fi
8+ RUN if [ "$LINT " = "true" ]; then npm run lint; fi
89EXPOSE 5173
910CMD ["npm" , "run" , "dev" ]
You can’t perform that action at this time.
0 commit comments