diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-09-15 03:24:32 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2022-09-15 03:24:32 +0000 |
commit | 9f17d55e4bc2f2ec16f64d266e10ecb7184e1c9b (patch) | |
tree | 58b06a77185207fe858594caa12d88f4ade725a5 /Dockerfile | |
parent | Merge pull request #875 from svenstaro/dependabot/cargo/chrono-humanize-0.2.2 (diff) | |
download | miniserve-9f17d55e4bc2f2ec16f64d266e10ecb7184e1c9b.tar.gz miniserve-9f17d55e4bc2f2ec16f64d266e10ecb7184e1c9b.zip |
Build container images using podman
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 18 |
1 files changed, 0 insertions, 18 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"] |