From e6e2eb1b3e01ff86524fa3a333899a875a026d58 Mon Sep 17 00:00:00 2001 From: duckception Date: Tue, 12 Sep 2023 02:11:30 +0200 Subject: [PATCH] reorder dockerfile --- Dockerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 97d644de7..b45873a59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,8 @@ # syntax=docker/dockerfile:1 FROM --platform=linux/amd64 synthetixio/docker-e2e:18.16-ubuntu as base -RUN mkdir /app -WORKDIR /app - RUN apt update && apt install -y nginx -COPY nginx.conf /etc/nginx/sites-available/default - -COPY package.json ./ -COPY pnpm-lock.yaml ./ - -FROM base as test - ENV PATH "$PATH:/root/.foundry/bin" RUN curl -L https://foundry.paradigm.xyz | bash && \ @@ -21,6 +11,16 @@ RUN curl -L https://foundry.paradigm.xyz | bash && \ anvil --version && \ cast --version +RUN mkdir /app +WORKDIR /app + +COPY nginx.conf /etc/nginx/sites-available/default + +COPY package.json ./ +COPY pnpm-lock.yaml ./ + +FROM base as test + RUN pnpm install --frozen-lockfile --prefer-offline COPY . .