# Feedback about one created Dockerfile

**URL:** <https://forums.docker.com/t/feedback-about-one-created-dockerfile/151672>\
**Category:** Image Builds\
**Tags:** build\
**Created:** [May 12, 2026, 11:12am UTC](https://forums.docker.com/t/feedback-about-one-created-dockerfile/151672 "2026-05-12T11:12:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doerrust](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/doerrust/32/64128_2.png) [@doerrust](https://forums.docker.com/u/doerrust)\
**Post date:** [May 12, 2026, 11:12am UTC](https://forums.docker.com/t/feedback-about-one-created-dockerfile/151672/1 "2026-05-12T11:12:18Z")

</div>

Hi everyone  
This is the Dockerfile I created to containerise my Rust CLI project. I’d really appreciate any feedback or suggestions on how I could improve it.

It’s the first Dockerfile I’ve written completely on my own without asking an AI to generate it for me, so I know there’s still a lot I can learn.

```auto
FROM rust:1.95-slim-bullseye as builder

WORKDIR /luffy/src/myapp

COPY Cargo.toml Cargo.lock ./
COPY src ./src

RUN cargo build --release

FROM debian:bullseye-slim

RUN apt-get update && \
    apt-get install -y ca-certificates && \
    rm -rf /var/lib/apt/lists/*

COPY --from=builder /luffy/src/myapp/target/release/github-user-activity /usr/src/local/bin/github-user-activity

ENTRYPOINT ["./usr/src/local/bin/github-user-activity"]

```

Thanks in advance for any advice or recommendations.

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [May 12, 2026, 12:46pm UTC](https://forums.docker.com/t/feedback-about-one-created-dockerfile/151672/2 "2026-05-12T12:46:46Z")

</div>

It is a short Dockerfile that looks good to me. Is there any specific in the Dockerfile you would like to ask about which you were not sure about?

**NOTE:** I moved the topic out of the Support category which is for topics that could require Docker Support or for forum feedbacks, not Docker-related questions.

---

<div class="post-metadata">

**Author:** ![doerrust](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/doerrust/32/64128_2.png) [@doerrust](https://forums.docker.com/u/doerrust)\
**Post date:** [May 12, 2026, 1:55pm UTC](https://forums.docker.com/t/feedback-about-one-created-dockerfile/151672/3 "2026-05-12T13:55:18Z")

</div>

Thanks for moving the topic to the correct category.

At the moment, I mainly wanted general feedback because this is the first Dockerfile I’ve written completely on my own. I’m especially interested in learning about best practices, image optimisation, security improvements, and whether there are more idiomatic ways to structure Rust Docker images.

So even small suggestions or things you would personally do differently would help me learn a lot.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/docker/original/3X/d/4/d4fbccd46c81bfcffe9822e20e17736d946fa821.png) [@system](https://forums.docker.com/u/system)\
**Post date:** [July 17, 2026, 6:04am UTC](https://forums.docker.com/t/feedback-about-one-created-dockerfile/151672/6 "2026-07-17T06:04:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
