Skip to content

Commit

Permalink
Merge pull request #53 from syfxlin/develop
Browse files Browse the repository at this point in the history
fix(pack): Load env failed
  • Loading branch information
syfxlin authored Jan 13, 2024
2 parents 0108034 + e1754a4 commit 4919248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/modules/service/packs/coline/coline.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ COPY . .
{% if config.coline.build %}
RUN {{ config.coline.build | command }}
{% else %}
RUN --mount=type=cache,target=/app/.next/cache --mount=type=secret,id==depker-envs,dst=/app/.env pnpm run build
RUN --mount=type=cache,target=/app/.next/cache --mount=type=secret,id=depker-envs,dst=/app/.env pnpm run build
{% endif %}
# inject after build
Expand Down
6 changes: 3 additions & 3 deletions src/modules/service/packs/nextjs/nextjs.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ COPY . .
{% if config.nextjs.build %}
RUN {{ config.nextjs.build | command }}
{% elif self.exists("pnpm-lock.yaml") %}
RUN --mount=type=cache,target=/app/.next/cache --mount=type=secret,id==depker-envs,dst=/app/.env pnpm run build
RUN --mount=type=cache,target=/app/.next/cache --mount=type=secret,id=depker-envs,dst=/app/.env pnpm run build
{% elif self.exists("yarn.lock") %}
RUN --mount=type=cache,target=/app/.next/cache --mount=type=secret,id==depker-envs,dst=/app/.env yarn run build
RUN --mount=type=cache,target=/app/.next/cache --mount=type=secret,id=depker-envs,dst=/app/.env yarn run build
{% elif self.exists("package.json") %}
RUN --mount=type=cache,target=/app/.next/cache --mount=type=secret,id==depker-envs,dst=/app/.env npm run build
RUN --mount=type=cache,target=/app/.next/cache --mount=type=secret,id=depker-envs,dst=/app/.env npm run build
{% endif %}
# inject after build
Expand Down

0 comments on commit 4919248

Please sign in to comment.