Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ WORKDIR /app/src
COPY package.json package-lock.json ./
RUN npm ci

# Copy rest of the app source
COPY . /app/src

FROM base AS debug

# Copy app source for development
COPY . /app/src

RUN apt-get update && apt-get install -y \
less \
iputils-ping \
Expand Down Expand Up @@ -47,6 +47,9 @@ COPY . /usr/local/apache2/htdocs/

FROM base AS tests

# Copy app source for testing
COPY . /app/src

# Install necessary packages for Playwright
RUN apt-get update && apt-get install -y \
libnss3 \
Expand All @@ -65,3 +68,6 @@ RUN npx playwright install chromium --with-deps
CMD ["npm", "run", "test:bdd"]

FROM base

# Copy app source for the final stage
COPY . /app/src