diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-09-15 05:35:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 05:35:05 +0000 |
commit | 18189ab698121d5bd21f190fd4669a5e87ed9dde (patch) | |
tree | e4618234d32e6bd1cae38af7c2e573e64e4225c7 /Dockerfile | |
parent | Fully qualify clap_complete::generate (diff) | |
parent | Build container images using podman (diff) | |
download | miniserve-18189ab698121d5bd21f190fd4669a5e87ed9dde.tar.gz miniserve-18189ab698121d5bd21f190fd4669a5e87ed9dde.zip |
Merge pull request #904 from svenstaro/podman-images
Build container images using podman
Diffstat (limited to '')
-rw-r--r-- | Dockerfile | 18 | ||||
-rw-r--r-- | Dockerfile.alpine | 19 |
2 files changed, 0 insertions, 37 deletions
diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 6fb6d10..0000000 --- a/Dockerfile +++ /dev/null @@ -1,18 +0,0 @@ -# This Dockerfile results in a super small container containing only the miniserve binary and nothing else. -# Use this in case you don't need any additional tools in the container. -FROM rust as builder - -ENV APP_HOME /usr/src/app/ - -RUN rustup target add x86_64-unknown-linux-musl -RUN apt update && apt-get install -y upx musl-tools - -COPY . $APP_HOME -WORKDIR $APP_HOME -RUN make build-linux - -FROM scratch -COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/miniserve /app/ - -EXPOSE 8080 -ENTRYPOINT ["/app/miniserve"] diff --git a/Dockerfile.alpine b/Dockerfile.alpine deleted file mode 100644 index f99d757..0000000 --- a/Dockerfile.alpine +++ /dev/null @@ -1,19 +0,0 @@ -# This Dockerfile results in an Alpine container containing the minishift executable. -# Use this in case you need additional basic tools provided by Alpine in this container. -FROM rust as builder - -ENV APP_HOME /usr/src/app/ - -RUN rustup target add x86_64-unknown-linux-musl -RUN apt update && apt-get install -y upx musl-tools - -COPY . $APP_HOME -WORKDIR $APP_HOME -RUN make build-linux - -FROM alpine -RUN apk add rsync -COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/miniserve /app/ - -EXPOSE 8080 -ENTRYPOINT ["/app/miniserve"] |