-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
FROM node:lts-alpine as latest | ||
RUN apk --no-cache --update add git zip | ||
FROM node:lts-alpine AS latest | ||
RUN apk --no-cache --update add git zip curl | ||
RUN apk --no-cache --update add docker-cli docker-cli-compose | ||
|
||
ENV PNPM_HOME=/usr/local/bin | ||
ENV XDG_DATA_HOME=/home/.share | ||
ENV XDG_STATE_HOME=/home/.state | ||
ENV XDG_CACHE_HOME=/tmp/.cache | ||
ENV PNPM_HOME=/home/.share/pnpm | ||
|
||
RUN npm i -g npm@10 && npm i -g @antfu/ni && npm i -g corepack \ | ||
&& rm -rf /root/.npm/_cacache && npm cache clean --force \ | ||
&& corepack enable npm && corepack prepare npm@latest --activate \ | ||
&& corepack enable yarn && corepack prepare yarn@1.22.22 --activate \ | ||
&& corepack enable pnpm && corepack prepare pnpm@latest --activate | ||
|
||
FROM latest as ssh | ||
WORKDIR /mnt | ||
|
||
FROM latest AS ssh | ||
RUN apk --no-cache --update add openssh | ||
|
||
FROM latest as sentry | ||
FROM latest AS sentry | ||
RUN pnpm i -g @sentry/cli | ||
|
||
FROM latest as python3 | ||
FROM latest AS python3 | ||
RUN apk --no-cache --update add python3 py3-pip | ||
|
||
FROM latest as cocoapods | ||
FROM latest AS cocoapods | ||
RUN apk add --no-cache --update ruby ruby-dev libffi-dev g++ make \ | ||
&& gem install cocoapods coding-push --no-document \ | ||
&& rm -rf /usr/lib/ruby/gems/*/cache/* \ | ||
&& apk del ruby-dev libffi-dev g++ make | ||
RUN pod setup --allow-root | ||
|
||
FROM latest as mp-wechat-ci | ||
FROM latest AS mp-wechat-ci | ||
RUN pnpm i -g miniprogram-ci | ||
|
||
FROM python3 as mp-alipay-ci | ||
FROM python3 AS mp-alipay-ci | ||
RUN apk --no-cache --update add make | ||
RUN pnpm i -g minidev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters