Skip to content

Commit

Permalink
reorder dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Sep 12, 2023
1 parent 53052ab commit e6e2eb1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand All @@ -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 . .

0 comments on commit e6e2eb1

Please sign in to comment.