Skip to content

Commit d6a0c00

Browse files
authored
Merge pull request #24 from resonix-dev/development
chore: update Dockerfiles to use ARG for Rust version
2 parents e4ffa7b + 4b97cec commit d6a0c00

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile.linux

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM rust:1.89 AS builder
1+
# Builder stage (Linux)
2+
ARG RUST_VERSION=1.80
3+
FROM rust:${RUST_VERSION} AS builder
24
WORKDIR /app
35
COPY . .
46
RUN cargo build --release

Dockerfile.windows

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Builder stage (Windows)
2-
FROM rust:1.89-windowsservercore-ltsc2022 AS builder
2+
ARG RUST_VERSION=1.80
3+
FROM rust:${RUST_VERSION}-windowsservercore-ltsc2022 AS builder
34
SHELL ["cmd", "/S", "/C"]
45
WORKDIR C:\app
56
COPY . .

0 commit comments

Comments
 (0)