diff --git a/Dockerfile b/Dockerfile index 2d046a3..2ea84f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,13 +24,13 @@ FROM alpine WORKDIR /app # 从builder镜像中把静态文件拷贝到当前目录 -COPY ./static . +COPY ./static ./static # 从builder镜像中把配置文件拷贝到当前目录 -COPY ./config . +COPY ./config ./config # 从builder镜像中把/dist/app 拷贝到当前目录 COPY --from=builder /build/dash . # 需要运行的命令 -ENTRYPOINT ["/app/dash"] +CMD ["/app/dash"]