-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (21 loc) · 818 Bytes
/
Dockerfile
File metadata and controls
31 lines (21 loc) · 818 Bytes
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
FROM node:24.3.0-slim
# --no-install-recommends keeps the image smaller by avoiding extra dependencies.
# rm -rf /var/lib/apt/lists/* cleans up cached package lists to reduce image size.
# psql is needed for dumping and restoring the initial effects cache.
RUN apt-get update && \
apt-get install -y --no-install-recommends postgresql-client && \
rm -rf /var/lib/apt/lists/*
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm@9.7.1
WORKDIR /envio-indexer
COPY ./package.json ./package.json
COPY ./pnpm-lock.yaml ./pnpm-lock.yaml
RUN pnpm install --frozen-lockfile
COPY ./config.yaml ./config.yaml
COPY ./schema.graphql ./schema.graphql
# Remove the line if you inlined all event ABIs in the config.yaml
COPY ./abis ./abis
RUN pnpm envio codegen
COPY ./ ./
CMD pnpm envio start