Skip to content

Commit

Permalink
Merge pull request #29 from Star-Academy/fixcicd
Browse files Browse the repository at this point in the history
fix: fix dockerfile
  • Loading branch information
msm1984 authored Aug 28, 2024
2 parents 56f2e0a + ffd74bd commit 0a119cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Stage 1: Base setup
FROM node:20 AS base
FROM node:20-slim AS base

FROM base as test

WORKDIR /app

Expand All @@ -21,7 +23,6 @@ RUN apt-get update && apt-get install -y \
ENV CHROME_BIN="/usr/bin/google-chrome"

# Stage 2: Test
FROM base as test

COPY /project/ .

Expand All @@ -30,6 +31,8 @@ RUN ng test --watch=false --browsers=ChromeHeadlessNoSandbox
# Stage 3: Build
FROM base as build

WORKDIR /app

COPY /project/ .

RUN npm ci
Expand Down

0 comments on commit 0a119cc

Please sign in to comment.