Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
timzaak committed Jun 17, 2024
1 parent ec31ba7 commit a3f9df0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions authServer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

# You can override this `--build-arg BASE_IMAGE=...` to use different
# version of Rust
ARG BASE_IMAGE=rust:1.77
ARG BASE_IMAGE=rust:alpine

ARG RUNTIME_IMAGE=debian:buster-slim
ARG RUNTIME_IMAGE=alpine

ARG APP_NAME=mqtt-auth-server

Expand All @@ -21,9 +21,9 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
cargo build --release

FROM ${RUNTIME_IMAGE}

COPY ./target/release/${APP_NAME} /usr/bin/

RUN apk add --no-cache tini
EXPOSE 5800
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["${APP_NAME}"]

CMD ["./${APP_NAME}"]
COPY --from=builder ./target/release/${APP_NAME} /usr/bin/

0 comments on commit a3f9df0

Please sign in to comment.