Repository: lucid-kv/lucid (language: rust)

Issue:
Finish Docker creation
Hi,

Actually Lucid contains a `Dockerfile` but it doesn't really work and it's not pushed on Docker Hub.

Normally the Docker Organization is created right now, I will push the container when it will be done.

Best regards


Discussion / hints:

Fix patch:
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..bd3b1e0
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,8 @@
+.git
+.github
+.idea
+assets
+scripts
+target
+webui/**
+!webui/dist/**
\ No newline at end of file
diff --git a/Cargo.toml b/Cargo.toml
index 2ff04f9..cae097c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,7 +31,7 @@ serde_yaml = "*"
 yaml-rust = "*"
 chrono = "*"
 include_dir = "*"
-jsonwebtoken = "*"
+jsonwebtoken = "6.0.1"
 app_dirs = "*"
 ring = "*"
 uuid = "*"
diff --git a/Dockerfile b/Dockerfile
index d3aa8ab..4c3d267 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,11 @@
-#MAINTAINER clint.mourlevat@gmail.com
+FROM rust:latest
+
+WORKDIR /usr/src/lucid
+COPY . .
 
-# Build Lucid
-FROM rust:1.38 as build
-COPY ./ ./
 RUN cargo build --release
-RUN mkdir -p /output
-RUN cp target/release/lucid /output
-
-# Run Lucid
-FROM alpine:latest
-COPY --from=build /output/lucid /
-WORKDIR /
-CMD ["lucid", "init"]
-CMD ["lucid", "server"]
+RUN cp target/release/lucid /usr/bin/
+
+EXPOSE 7021
+
+CMD ["lucid", "server", "--config", "/etc/lucid/lucid.yml"]
\ No newline at end of file


Test patch: