From ee5973b9f3c6deda7dfb037d9fbbdfcfb2c87bf1 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Sat, 4 Jul 2020 11:33:45 -0700 Subject: [PATCH] Use volumes (#560) --- integration/Dockerfile | 8 ++++---- integration/docker-compose.test.yml | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/integration/Dockerfile b/integration/Dockerfile index 47fce24b..31ff6e66 100644 --- a/integration/Dockerfile +++ b/integration/Dockerfile @@ -1,8 +1,8 @@ -FROM amir20/docker-alpine-puppeteer:edge +FROM amir20/docker-alpine-puppeteer:v1 -COPY --chown=pptruser:pptruser package*.json yarn.lock /app/ +COPY package*.json yarn.lock /app/ RUN yarn -COPY --chown=pptruser:pptruser . /app/ +COPY . /app/ -CMD [ "yarn", "test"] +CMD ["yarn", "test"] diff --git a/integration/docker-compose.test.yml b/integration/docker-compose.test.yml index 52a94d05..2991c2ef 100644 --- a/integration/docker-compose.test.yml +++ b/integration/docker-compose.test.yml @@ -21,6 +21,8 @@ services: build: context: . command: yarn test + volumes: + - ./__image_snapshots__:/app/__image_snapshots__ environment: - DEFAULT_URL=http://dozzle:8080/ - CUSTOM_URL=http://custom_base:8080/foobarbase