Skip to content

Commit

Permalink
Move ARG APP to top of Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Hpmason authored Sep 11, 2021
1 parent 00c5fa6 commit 60c5824
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

FROM rust:latest AS builder
ARG APP=mcbot-rs
FROM rust:latest AS builder
ARG APP
WORKDIR /usr/src/${APP}
COPY . .
RUN cargo build --release

FROM debian:buster-slim
ARG APP=mcbot-rs
ARG APP
COPY --from=builder /usr/src/${APP}/target/release/${APP} /usr/local/bin/${APP}
CMD ["mcbot-rs"]
CMD ${APP}

0 comments on commit 60c5824

Please sign in to comment.