mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-08 03:43:56 -05:00
* refactor Operational packages * fix: refactor operations package to use oclif * adjusting Dockerfile * adjusting github action * Update all-tools.yml Signed-off-by: Andrei A. <andrei.alexandru@consensys.net> * adjusting github action --------- Signed-off-by: Andrei A. <andrei.alexandru@consensys.net> Co-authored-by: VGau <victorien.gauch@consensys.net>
31 lines
635 B
Docker
31 lines
635 B
Docker
# syntax=docker/dockerfile:1.2
|
|
FROM node:20-slim AS base
|
|
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
|
|
RUN corepack enable
|
|
|
|
FROM base AS builder
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml tsconfig.json ./
|
|
|
|
COPY operations/ ./operations/
|
|
|
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --prefer-offline --ignore-scripts
|
|
RUN pnpm run -F operations build
|
|
RUN pnpm deploy --filter=./operations --prod ./prod
|
|
|
|
FROM node:20-slim AS release
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
USER node
|
|
|
|
COPY --from=builder /usr/src/app/prod ./
|
|
|
|
ENTRYPOINT ["./bin/run.js"] |