Files
hardhat-zkit/Dockerfile
Mllw Chrry f9009fd280 Tests dockerization (#48)
* add tests dockerization

* fixed compile with library test

* made Dockerfile dynamic

* removed dockerized coverage

* removed alpine, dockerized coverage

* moved test-docker command to script

* try to improve docker

* update dockerignore

---------

Co-authored-by: Artem Chystiakov <artem.ch31@gmail.com>
2024-11-01 13:44:08 +02:00

16 lines
306 B
Docker

ARG NODE_VERSION=20
FROM node:${NODE_VERSION} AS base
WORKDIR /hardhat-zkit
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json package-lock.json /temp/dev/
RUN cd /temp/dev && npm ci
FROM base AS dev
COPY --from=install /temp/dev/node_modules node_modules
COPY . .
ENTRYPOINT ["npm", "run"]