豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 4e5cf88

Browse files
fix: copying a directory copies the contents into the destination, so we have to repeat the name, meaning we cannot mix it with files
1 parent effd70c commit 4e5cf88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ WORKDIR /build
4545

4646
RUN cargo init --name ${APPLICATION_NAME}
4747

48-
COPY ./.cargo ./Cargo.toml ./Cargo.lock ./
48+
COPY ./.cargo ./cargo
49+
COPY ./Cargo.toml ./Cargo.lock ./
4950

5051
RUN echo "fn main() {}" > ./src/build.rs
5152

0 commit comments

Comments
 (0)