Skip to content

Commit

Permalink
fix: use nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
muandane committed Jun 22, 2024
1 parent 1ad3309 commit d110412
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions apps/mule/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@
ARG RUST_VERSION=1.79.0
ARG APP_NAME=mule
ARG CARGO_INCREMENTAL=0
ARG RUSTFLAGS="-Z threads=8"
################################################################################
# Create a stage for building the application.

FROM rustlang/rust:nightly-bookworm-slim AS build
FROM rust:${RUST_VERSION}-bookworm AS build
ARG APP_NAME
WORKDIR /app

# Install host build dependencies.
RUN apt update && apt install --no-install-recommends clang lld git pkg-config -y

# RUN apt add --no-cache clang lld git
RUN rustup default nightly
# Build the application.
# Leverage a cache mount to /usr/local/cargo/registry/
# for downloaded dependencies, a cache mount to /usr/local/cargo/git/db
Expand All @@ -28,6 +26,7 @@ RUN apt update && apt install --no-install-recommends clang lld git pkg-config -
# source code into the container. Once built, copy the executable to an
# output directory before the cache mounted /app/target is unmounted.

ARG RUSTFLAGS="-Z threads=8"
RUN --mount=type=bind,source=src,target=src \
--mount=type=bind,source=Cargo.toml,target=Cargo.toml \
--mount=type=bind,source=Cargo.lock,target=Cargo.lock \
Expand Down
4 changes: 2 additions & 2 deletions apps/mule/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ tasks:
runInCI: true
docker-build:
command: 'docker buildx bake --push'
deps:
- 'check'
# deps:
# - 'check'
options:
runInCI: true

0 comments on commit d110412

Please sign in to comment.