-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (26 loc) · 776 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM node:20.18.0-alpine3.16
WORKDIR /app
# Install pnpm
RUN npm i -g pnpm@9.12.2
# Copy root package.json + pnpm-lock.yaml + pnpm-workspace.yaml
COPY pnpm-lock.yaml package.json pnpm-workspace.yaml ./
##########
# LIBS #
##########
COPY ./libs/rp-plugin/package.json ./libs/rp-plugin/
##########
# APPS #
##########
COPY ./apps/issuer/package.json ./apps/issuer/
COPY ./apps/verifier/package.json ./apps/verifier/
# Remove prepare script
RUN npm pkg delete scripts.prepare
# Copy all other files
COPY . .
# Install all the dependencies
# This would be better before COPY . . but we use postinstall scripts
# that depend on some of the files copied above
RUN pnpm install --frozen-lockfile
ENV NODE_ENV=production
# Build affected projects
RUN pnpm build:docker