Skip to content

Commit 64c5c05

Browse files
committed
Updated Docker Images
1 parent 20a5ab3 commit 64c5c05

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
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

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
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

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ WORKDIR /app
33
COPY my-app .
44
RUN npm ci
55
ARG CI=false
6+
ARG LINT=false
67
RUN 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
89
EXPOSE 5173
910
CMD ["npm", "run", "dev"]

0 commit comments

Comments
 (0)