Commit 176a1a59 authored by mingyard's avatar mingyard

feat:docker file修改镜像

parent af666b0b
# 使用官方 Node.js 镜像作为基础镜像 # 使用官方 Node.js 镜像作为基础镜像
FROM node:20-alpine as build-stage FROM node:20.18-alpine as build-stage
# 设置工作目录 # 设置工作目录
WORKDIR /code WORKDIR /code
...@@ -18,7 +18,7 @@ COPY . . ...@@ -18,7 +18,7 @@ COPY . .
RUN yarn build RUN yarn build
# 使用更小的 Node.js 镜像作为运行时镜像 # 使用更小的 Node.js 镜像作为运行时镜像
FROM node:20-slim as app-stage FROM node:20.18-slim as app-stage
# 设置环境变量 # 设置环境变量
ENV NODE_ENV=development ENV NODE_ENV=development
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment