We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 391aa14 commit f290959Copy full SHA for f290959
.dockerignore
@@ -1,4 +1,6 @@
1
/.git/
2
+/.idea/
3
/target/
4
/keys/
5
/db/
6
+/docker/
docker/ubuntu/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:14.04
+FROM ubuntu:14.04 as builder
WORKDIR /build
# install tools and dependencies
@@ -38,8 +38,14 @@ RUN cd codechain && \
38
39
RUN file /build/codechain/target/release/codechain
40
41
-WORKDIR /build/codechain
42
43
-EXPOSE 3485 8080
44
-ENTRYPOINT ["target/release/codechain"]
+FROM ubuntu:14.04
+WORKDIR /app/codechain
+COPY --from=builder /build/codechain/target/release/codechain ./target/release/codechain
45
+COPY --from=builder /build/codechain/codechain/config/presets/ ./codechain/config/presets
46
47
+# show backtraces
48
+ENV RUST_BACKTRACE 1
49
+
50
+EXPOSE 3485 8080
51
+ENTRYPOINT ["target/release/codechain"]
0 commit comments