Page MenuHomeDevCentral

D1890.diff
No OneTemporary

D1890.diff

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,32 @@
+# -------------------------------------------------------------
+# Nasqueron - private Docker registry API image
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-10-11
+# License: BSD-2-Clause
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Builder phase
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+FROM ekidd/rust-musl-builder:nightly AS builder
+ADD . ./
+RUN sudo chown -R rust:rust /home/rust && \
+ cargo build --release
+
+# -------------------------------------------------------------
+# Release phase
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+FROM alpine:latest
+MAINTAINER Sébastien Santoro aka Dereckson <dereckson+nasqueron-docker@espace-win.org>
+
+COPY --from=builder \
+ /home/rust/src/target/x86_64-unknown-linux-musl/release/docker-registry-api \
+ /usr/local/bin/
+
+ENV ROCKET_ADDRESS=0.0.0.0
+EXPOSE 8000
+
+CMD /usr/local/bin/docker-registry-api

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 15:57 (18 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258356
Default Alt Text
D1890.diff (1 KB)

Event Timeline