docker!
This commit is contained in:
parent
75755052c3
commit
c5b0a8ef79
3 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM rust:latest as build
|
FROM docker.io/rust:latest as build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ RUN \
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
# https://hub.docker.com/r/bitnami/minideb
|
# https://hub.docker.com/r/bitnami/minideb
|
||||||
FROM bitnami/minideb:latest
|
FROM docker.io/bitnami/minideb:latest
|
||||||
|
|
||||||
# microbin will be in /app
|
# microbin will be in /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -28,8 +28,8 @@ COPY --from=build \
|
||||||
|
|
||||||
# copy built executable
|
# copy built executable
|
||||||
COPY --from=build \
|
COPY --from=build \
|
||||||
/app/target/release/microbin \
|
/app/target/release/karton \
|
||||||
/usr/bin/microbin
|
/usr/bin/karton
|
||||||
|
|
||||||
# Expose webport used for the webserver to the docker runtime
|
# Expose webport used for the webserver to the docker runtime
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
|
@ -35,7 +35,7 @@ This is a fork of [MicroBin](https://github.com/szabodanika/microbin).
|
||||||
- [ ] Distribution
|
- [ ] Distribution
|
||||||
- [ ] nixpkgs
|
- [ ] nixpkgs
|
||||||
- [x] crates.io
|
- [x] crates.io
|
||||||
- [ ] Docker
|
- [x] Docker hub
|
||||||
- [ ] Various other distribution specific repositories?
|
- [ ] Various other distribution specific repositories?
|
||||||
|
|
||||||
- [ ] Quality
|
- [ ] Quality
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
{
|
{
|
||||||
defaultPackage = naersk-lib.buildPackage ./.;
|
defaultPackage = naersk-lib.buildPackage ./.;
|
||||||
devShell = with pkgs; mkShell {
|
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;
|
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue