22 lines
358 B
Plaintext
22 lines
358 B
Plaintext
# syntax=docker/dockerfile:1
|
|
|
|
FROM mcr.microsoft.com/playwright
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
COPY package*.json .
|
|
|
|
RUN npm ci
|
|
|
|
# Install browsers
|
|
RUN ./node_modules/.bin/playwright install
|
|
|
|
COPY tsconfig.json .
|
|
COPY .aegir.js .
|
|
COPY test ./test
|
|
COPY src ./src
|
|
|
|
RUN npm run build
|
|
|
|
ENTRYPOINT [ "npm", "test", "--", "--build", "false", "--types", "false", "-t", "browser" ] |