change dockerfile
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m26s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m26s
This commit is contained in:
parent
d06e94ad11
commit
0da9a17570
@ -1,9 +1,6 @@
|
|||||||
# 使用官方Node.js运行时作为基础镜像
|
# 使用官方Node.js运行时作为基础镜像
|
||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
|
|
||||||
# 全局安装yarn
|
|
||||||
RUN npm install -g yarn
|
|
||||||
|
|
||||||
# 设置工作目录
|
# 设置工作目录
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -16,6 +13,10 @@ RUN yarn install
|
|||||||
# 复制项目文件
|
# 复制项目文件
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# 设置环境变量
|
||||||
|
ENV HOST=0.0.0.0
|
||||||
|
ENV PORT=3000
|
||||||
|
|
||||||
# 暴露端口
|
# 暴露端口
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user