diff options
-rw-r--r-- | .dockerignore | 2 | ||||
-rw-r--r-- | .drone.yml | 12 | ||||
-rw-r--r-- | Dockerfile | 13 |
3 files changed, 27 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..14ee500 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +target/ +.env @@ -7,3 +7,15 @@ steps: image: rust:latest commands: - cargo check + + - name: docker + image: plugins/docker + settings: + username: robot$drone + password: + from_secret: docker_password + repo: reg.devcara.com/glitch/bot + registry: reg.devcara.com + auto_tag: true + when: + event: tag diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2a46a40 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM rust as builder + +WORKDIR /src/glitch + +COPY . /src/glitch + +RUN cargo build --release + +FROM archlinux + +COPY --from=builder /src/glitch/target/release/glitch-ng /bin/glitch/glitch-ng + +ENTRYPOINT [ "/bin/glitch/glitch-ng" ] |