update dockerfile with rustfmt
All checks were successful
Run Check Script / check (pull_request) Successful in 2m7s
All checks were successful
Run Check Script / check (pull_request) Successful in 2m7s
This commit is contained in:
parent
d8f50b2834
commit
f4a12ccbe3
@ -9,7 +9,7 @@ jobs:
|
||||
check:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: hub.nationtech.io/harmony/harmony_composer:latest
|
||||
image: hub.nationtech.io/harmony/harmony_composer:latest@sha256:eb0406fcb95c63df9b7c4b19bc50ad7914dd8232ce98e9c9abef628e07c69386
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
package_harmony_composer:
|
||||
container:
|
||||
image: hub.nationtech.io/harmony/harmony_composer:latest
|
||||
image: hub.nationtech.io/harmony/harmony_composer:latest@sha256:eb0406fcb95c63df9b7c4b19bc50ad7914dd8232ce98e9c9abef628e07c69386
|
||||
runs-on: dind
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
16
Dockerfile
16
Dockerfile
@ -10,19 +10,15 @@ FROM docker.io/rust:1.87.0
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN rustup target add x86_64-pc-windows-gnu
|
||||
RUN rustup target add x86_64-unknown-linux-gnu
|
||||
RUN rustup component add rustfmt
|
||||
|
||||
RUN apt update
|
||||
|
||||
# For checkout action
|
||||
RUN apt install -y nodejs
|
||||
|
||||
RUN apt install -y docker.io
|
||||
|
||||
RUN rustup target add x86_64-unknown-linux-gnu
|
||||
|
||||
RUN apt install -y mingw-w64
|
||||
RUN rustup target add x86_64-pc-windows-gnu
|
||||
|
||||
# TODO: Consider adding more supported targets
|
||||
# nodejs for checkout action, docker for building containers, mingw for cross-compiling for windows
|
||||
RUN apt install -y nodejs docker.io mingw-w64
|
||||
|
||||
COPY --from=build /app/target/release/harmony_composer .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user