summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2022-12-31 17:43:42 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2022-12-31 17:43:42 +0400
commit32af5021cb2bf558d6a0c21b863f16755d475307 (patch)
tree5169992b2b908a323f9e34714702fbb043423b34 /Dockerfile
parent2574d043947c2f9f30901a7b7ab8c667a9affb44 (diff)
add dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 6d40591..339f77b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-ARG COMPONENT
+
FROM clux/muslrust:stable AS chef
USER root
@@ -26,7 +26,8 @@ RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
# Final os
FROM runtime-base AS runtime
+ARG COMPONENT
+ENV COMPONENT=${COMPONENT}
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/${COMPONENT} /usr/local/bin/
USER nova
-ENV COMPONENT ${COMPONENT}
-CMD /usr/local/bin/${COMPONENT}
+ENTRYPOINT /usr/local/bin/${COMPONENT}