This commit is contained in:
+10
-7
@@ -1,14 +1,17 @@
|
||||
FROM node:latest
|
||||
FROM node:20-bookworm
|
||||
LABEL authors="hq@gpio.me"
|
||||
|
||||
|
||||
WORKDIR /app
|
||||
ADD index.js /app
|
||||
|
||||
RUN npm config set registry http://registry.npmmirror.com
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends git curl zip python3 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -fsSL https://bun.sh/install | bash \
|
||||
&& ln -s /root/.bun/bin/bun /usr/local/bin/bun
|
||||
|
||||
RUN npm i pkg -g
|
||||
RUN pkg -t node14-alpine-arm64 index.js
|
||||
RUN pkg -t node14-linux-arm64 index.js
|
||||
|
||||
|
||||
|
||||
ENV PATH="/root/.bun/bin:${PATH}"
|
||||
|
||||
Reference in New Issue
Block a user