Skip to content

Commit

Permalink
chore(typescript): cache dependencies in docker (#4650)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Sep 15, 2024
1 parent d6cf786 commit 69595ab
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 46 deletions.
56 changes: 40 additions & 16 deletions docker/seed/Dockerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,46 @@ FROM base AS builder

RUN mkdir /yarn-cache-template
RUN yarn config set cache-folder /yarn-cache-template
RUN yarn add \
@types/[email protected] \
@types/[email protected] \
@types/[email protected] \
@types/[email protected] \
@types/[email protected] \
form-data@4.0.0 \
jest-environment-jsdom@29.7.0 \
jest@29.7.0 \
js-base64@3.7.2 \
node-fetch@2.7.0 \
prettier@2.7.1 \
qs@6.11.2 \
ts-jest@29.1.1 \
typescript@4.6.4 \
url-join@4.0.1

RUN yarn add \
# jest
jest@29.7.0 \
@types/[email protected] \
# node fetch
node-fetch@2.7.0 \
@types/[email protected] \
# node
@types/[email protected] \
# qs
qs@6.11.2 \
@types/[email protected] \
# url join
url-join@4.0.1 \
@types/[email protected] \
# readable stream
readable-stream@4.5.2 \
@types/[email protected] \
# form data
form-data@4.0.0 \
# formdata-node
formdata-node@6.0.3 \
# jest env jsdom
jest-environment-jsdom@29.7.0 \
# js base64
"[email protected]" \
# prettier
prettier@2.7.1 \
# ts jest
ts-jest@29.1.1 \
# typescript
"[email protected]" \
# form data encoder
form-data-encoder@4.0.2 \
# webpack
ts-loader@9.3.1 \
webpack@5.94.0 \
# fetch mock jest
fetch-mock-jest@1.5.1

FROM base AS runner

Expand Down
42 changes: 42 additions & 0 deletions generators/typescript/sdk/cli/node-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,48 @@ RUN apk --no-cache add git zip \
&& git config --global user.name "fern" \
&& git config --global user.email "[email protected]"

RUN yarn init --yes

RUN yarn add \
# jest
[email protected] \
@types/[email protected] \
# node fetch
[email protected] \
@types/[email protected] \
# node
@types/[email protected] \
# qs
[email protected] \
@types/[email protected] \
# url join
[email protected] \
@types/[email protected] \
# readable stream
[email protected] \
@types/[email protected] \
# form data
[email protected] \
# formdata-node
[email protected] \
# jest env jsdom
[email protected] \
# js base64
"[email protected]" \
# prettier
[email protected] \
# ts jest
[email protected] \
# typescript
"[email protected]" \
# form data encoder
[email protected] \
# webpack
[email protected] \
[email protected] \
# fetch mock jest
[email protected]

COPY generators/typescript/utils/core-utilities/fetcher/src/ /assets/fetcher
COPY generators/typescript/utils/core-utilities/callback-queue/src/ /assets/callback-queue
COPY generators/typescript/utils/core-utilities/auth/src/ /assets/auth
Expand Down

This file was deleted.

0 comments on commit 69595ab

Please sign in to comment.