1 Star 0 Fork 0

shuaidaia/belly-wechat-bot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
belly.lin 提交于 2024-09-12 18:17 . 初始化项目
ARG APT_SOURCE="default"
FROM node:19 as builder-default
ENV NPM_REGISTRY="https://registry.npmjs.org"
FROM node:19 as builder-aliyun
ENV NPM_REGISTRY="https://registry.npmmirror.com"
RUN sed -i s/deb.debian.org/mirrors.aliyun.com/g /etc/apt/sources.list \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
FROM builder-${APT_SOURCE} AS builder
# Instal the 'apt-utils' package to solve the error 'debconf: delaying package configuration, since apt-utils is not installed'
# https://peteris.rocks/blog/quiet-and-unattended-installation-with-apt-get/
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils \
autoconf \
automake \
bash \
build-essential \
ca-certificates \
chromium \
coreutils \
curl \
ffmpeg \
figlet \
git \
gnupg2 \
jq \
libgconf-2-4 \
libtool \
libxtst6 \
moreutils \
python-dev \
shellcheck \
sudo \
tzdata \
vim \
wget \
&& apt-get purge --auto-remove \
&& rm -rf /tmp/* /var/lib/apt/lists/*
FROM builder
ENV CHROME_BIN="/usr/bin/chromium" \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
RUN mkdir -p /app
WORKDIR /app
COPY package.json ./
RUN npm config set registry ${NPM_REGISTRY} && npm i
COPY *.js ./
COPY src/ ./src/
CMD ["npm", "run", "dev"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shuaidaia/belly-wechat-bot.git
git@gitee.com:shuaidaia/belly-wechat-bot.git
shuaidaia
belly-wechat-bot
belly-wechat-bot
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385