feat: drone.ci
This commit is contained in:
parent
92e5097539
commit
cecaa95bd0
|
@ -1,9 +1,9 @@
|
||||||
# 拉取的原镜像
|
# 拉取的原镜像
|
||||||
FROM node:16.19-alpine AS build
|
FROM node:16.19 AS build
|
||||||
# 创建一个项目文件夹,可自定义
|
# 创建一个项目文件夹,可自定义
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
# 将本地文件复制到项目文件夹下
|
# 将本地文件复制到项目文件夹下
|
||||||
COPY ./apps/server .
|
COPY ./apps/server/* .
|
||||||
|
|
||||||
RUN ls -a
|
RUN ls -a
|
||||||
# 切换到淘宝镜像,安装依赖比较快
|
# 切换到淘宝镜像,安装依赖比较快
|
||||||
|
@ -20,6 +20,8 @@ FROM node:16.19-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
# 将打包后的的文件复制到docker镜像里
|
# 将打包后的的文件复制到docker镜像里
|
||||||
COPY --from=build /app/dist ./dist
|
COPY --from=build /app/dist ./dist
|
||||||
|
|
||||||
|
# 把源代码复制过去, 以便报错能报对行
|
||||||
COPY --from=build /app/src ./src
|
COPY --from=build /app/src ./src
|
||||||
COPY --from=build /app/bootstrap.js ./
|
COPY --from=build /app/bootstrap.js ./
|
||||||
COPY --from=build /app/package.json ./
|
COPY --from=build /app/package.json ./
|
||||||
|
|
Loading…
Reference in New Issue
Block a user