add
This commit is contained in:
parent
4d8bcbe50c
commit
94b38ab998
15
Dockerfile
15
Dockerfile
|
@ -1,7 +1,20 @@
|
||||||
# 基础镜像
|
# 基础镜像
|
||||||
FROM node:18.17-alpine as base
|
FROM node:18.17-alpine as base
|
||||||
# 更改 apk 镜像源为阿里云
|
# 更改 apk 镜像源为阿里云
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||||
|
|
||||||
|
# 使用阿里云镜像源 + 完整仓库声明
|
||||||
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
|
||||||
|
echo "https://mirrors.aliyun.com/alpine/v3.18/community" >> /etc/apk/repositories
|
||||||
|
|
||||||
|
# 安装最新稳定版 PostgreSQL 客户端(15.11)
|
||||||
|
RUN apk update --no-cache && \
|
||||||
|
apk add --no-cache \
|
||||||
|
postgresql15-client \
|
||||||
|
libpq \
|
||||||
|
readline
|
||||||
|
|
||||||
|
|
||||||
# 设置 npm 镜像源
|
# 设置 npm 镜像源
|
||||||
RUN yarn config set registry https://registry.npmmirror.com
|
RUN yarn config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue