summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorJulian Sitkevich <1553398+sitkevij@users.noreply.github.com>2020-11-22 09:42:47 -0800
committerGitHub <noreply@github.com>2020-11-22 09:42:47 -0800
commitb0a844a83c9c15f2416fa7e5748347fbe1ee4a77 (patch)
tree1387bfc70dbe5a4da6680ae9650087a09f5d32c6 /Dockerfile
parent2e34704eba10e0619d5ddcb5f98cce0d06f53d9e (diff)
parentd7d381f01932806d47d3f21c26428654b591b9f6 (diff)
Merge pull request #51 from sitkevij/developv0.4.0
develop 0.4.0
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile25
1 files changed, 10 insertions, 15 deletions
diff --git a/Dockerfile b/Dockerfile
index 653dcdb..b8697ac 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,19 +1,14 @@
-FROM debian:stretch-slim
+FROM rust:alpine
WORKDIR /root
+ENTRYPOINT ["target/release/hx"]
LABEL org.label-schema.name="hx" \
- org.label-schema.description="Futuristic take on hexdump, made in rust" \
- org.label-schema.url="https://hub.docker.com/r/sitkevij/hex/" \
- org.label-schema.usage="https://github.com/sitkevij/hex/blob/master/README.md" \
- org.label-schema.vcs-url="https://github.com/sitkevij/hex" \
- org.label-schema.vendor="sitkevij" \
- org.label-schema.version="0.2.1" \
- maintainer="https://github.com/sitkevij"
-RUN apt-get update && \
- apt-get install --no-install-recommends -y \
- ca-certificates curl build-essential
- # file autoconf automake autotools-dev libtool xutils-dev && \
- # rm -rf /var/lib/apt/lists/*
-RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
+ org.label-schema.description="Futuristic take on hexdump, made in rust" \
+ org.label-schema.url="https://hub.docker.com/r/sitkevij/hx" \
+ org.label-schema.usage="https://github.com/sitkevij/hex/blob/master/README.md" \
+ org.label-schema.vcs-url="https://github.com/sitkevij/hex" \
+ org.label-schema.vendor="sitkevij" \
+ org.label-schema.version="latest" \
+ maintainer="https://github.com/sitkevij"
ENV PATH=/root/.cargo/bin:$PATH
COPY . .
-RUN cargo build \ No newline at end of file
+RUN cargo build --release \ No newline at end of file