forked from sushi-labs/sushiswap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.extractor
57 lines (34 loc) · 1.17 KB
/
Dockerfile.extractor
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
ARG TURBO_TEAM
ENV TURBO_TEAM=$TURBO_TEAM
ARG TURBO_TOKEN
ENV TURBO_TOKEN=$TURBO_TOKEN
RUN corepack enable
WORKDIR /app
# RUN pnpm install turbo --global
COPY apis/extractor apis/extractor
COPY config/jest config/jest
COPY config/typescript config/typescript
COPY packages/extractor packages/extractor
COPY packages/sushi packages/sushi
COPY patches patches
COPY package.json package.json
COPY pnpm-lock.yaml pnpm-lock.yaml
COPY pnpm-workspace.yaml pnpm-workspace.yaml
COPY turbo.json turbo.json
# RUN turbo prune @sushiswap/extractor-api --docker
# FROM base AS installer
# RUN pnpm install --prod --frozen-lockfile
# RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
# FROM base AS builder
RUN pnpm install --frozen-lockfile
RUN pnpm exec turbo run build --filter=extractor-api
# FROM base AS runner
# COPY --from=installer /app/node_modules /app/node_modules
# COPY --from=builder /app/apis/extractor/dist /app/apis/extractor/dist
# COPY --from=builder /app /app
EXPOSE 80
CMD node /app/apis/extractor/dist/index.js