This commit is contained in:
Schrottkatze 2023-03-05 17:02:18 +01:00
parent 75755052c3
commit c5b0a8ef79
3 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
FROM rust:latest as build
FROM docker.io/rust:latest as build
WORKDIR /app
@ -12,7 +12,7 @@ RUN \
cargo build --release
# https://hub.docker.com/r/bitnami/minideb
FROM bitnami/minideb:latest
FROM docker.io/bitnami/minideb:latest
# microbin will be in /app
WORKDIR /app
@ -28,8 +28,8 @@ COPY --from=build \
# copy built executable
COPY --from=build \
/app/target/release/microbin \
/usr/bin/microbin
/app/target/release/karton \
/usr/bin/karton
# Expose webport used for the webserver to the docker runtime
EXPOSE 8080

View file

@ -35,7 +35,7 @@ This is a fork of [MicroBin](https://github.com/szabodanika/microbin).
- [ ] Distribution
- [ ] nixpkgs
- [x] crates.io
- [ ] Docker
- [x] Docker hub
- [ ] Various other distribution specific repositories?
- [ ] Quality

View file

@ -14,7 +14,7 @@
{
defaultPackage = naersk-lib.buildPackage ./.;
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy cargo-watch ];
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy cargo-watch podman ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
});