2023-03-06 17:47:40 -08:00
|
|
|
# syntax=docker/dockerfile:1
|
2023-04-11 11:29:32 -07:00
|
|
|
# Using playwright so that we have the same base across NodeJS + Browser tests
|
2023-03-06 17:47:40 -08:00
|
|
|
FROM mcr.microsoft.com/playwright
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2023-04-11 11:29:32 -07:00
|
|
|
COPY package*.json ./
|
2023-03-06 17:47:40 -08:00
|
|
|
|
|
|
|
RUN npm ci
|
|
|
|
|
2023-04-11 11:29:32 -07:00
|
|
|
# Install browsers, Needed for the browser tests, but we do it here so we have the same base
|
2023-03-06 17:47:40 -08:00
|
|
|
RUN ./node_modules/.bin/playwright install
|
|
|
|
|
|
|
|
COPY tsconfig.json .
|
|
|
|
COPY .aegir.js .
|
|
|
|
COPY test ./test
|
|
|
|
COPY src ./src
|
|
|
|
|
|
|
|
RUN npm run build
|
|
|
|
|
2023-04-11 11:29:32 -07:00
|
|
|
ENTRYPOINT [ "npm", "test", "--", "--build", "false", "--types", "false", "-t", "node" ]
|