Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3766009
D1890.diff
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
D1890.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1890: Provide Docker image to run the microservice
Attached
Detach File
Event Timeline
Log In to Comment