Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11726080
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..1e0c6b9
--- /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
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Sep 19, 00:17 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2991951
Default Alt Text
(1 KB)
Attached To
Mode
rAPIREG Nasqueron private Docker registry API
Attached
Detach File
Event Timeline
Log In to Comment