Skip to content

Commit

Permalink
Merge pull request #12 from Star-Academy/fixcicd
Browse files Browse the repository at this point in the history
fix: bug in nginx is fixed
  • Loading branch information
msm1984 authored Aug 24, 2024
2 parents a68bc90 + 29d39ab commit 9f6e8cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Stage 1: Base setup
FROM node:20 AS base

FROM base as test

WORKDIR /app

COPY /project/package*.json ./
Expand All @@ -22,6 +20,9 @@ RUN apt-get update && apt-get install -y \

ENV CHROME_BIN="/usr/bin/google-chrome"

# Stage 2: Test
FROM base as test

COPY /project/ .

RUN ng test --watch=false --browsers=ChromeHeadlessNoSandbox
Expand All @@ -31,7 +32,7 @@ FROM base as build

COPY /project/ .

RUN npm ci && npm install -g @angular/[email protected]
RUN npm ci

# Build both the client and server-side parts
RUN npm run build
Expand Down

0 comments on commit 9f6e8cb

Please sign in to comment.