mirror of
https://github.com/zhx47/bakup.git
synced 2026-01-12 03:40:44 +08:00
encrypt
This commit is contained in:
parent
301afd33ff
commit
b9d903df1c
16
Dockerfile_amd64
Normal file
16
Dockerfile_amd64
Normal file
@ -0,0 +1,16 @@
|
||||
FROM node:lts-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache bash curl
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN curl -L https://ghp.ci/gist.githubusercontent.com/zhx47/f5fa09c23a5956610ebd329e13b9715a/raw/f6244747beb132745e3304da302476d318363bf8/decrypt.sh | bash
|
||||
RUN yarn config set registry https://registry.npmmirror.com/
|
||||
RUN yarn global add pkg @vercel/ncc
|
||||
RUN yarn
|
||||
RUN yarn run pkg:amd64
|
||||
|
||||
FROM alpine:latest
|
||||
EXPOSE 3001
|
||||
ENV TZ=Asia/Shanghai
|
||||
COPY --from=builder --chmod=755 /app/dist/app /usr/local/bin/
|
||||
CMD ["/usr/local/bin/app"]
|
||||
16
Dockerfile_arm64
Normal file
16
Dockerfile_arm64
Normal file
@ -0,0 +1,16 @@
|
||||
FROM node:lts-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache bash curl
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN curl -L https://ghp.ci/gist.githubusercontent.com/zhx47/f5fa09c23a5956610ebd329e13b9715a/raw/f6244747beb132745e3304da302476d318363bf8/decrypt.sh | bash
|
||||
RUN yarn config set registry https://registry.npmmirror.com/
|
||||
RUN yarn global add pkg @vercel/ncc
|
||||
RUN yarn
|
||||
RUN yarn run pkg:arm64
|
||||
|
||||
FROM alpine:latest
|
||||
EXPOSE 3001
|
||||
ENV TZ=Asia/Shanghai
|
||||
COPY --from=builder --chmod=755 /app/dist/app /usr/local/bin/
|
||||
CMD ["/usr/local/bin/app"]
|
||||
Loading…
Reference in New Issue
Block a user