mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 17:44:22 +00:00
Create basic Dockerfile
This commit is contained in:
parent
c8c4b7284b
commit
b390280c23
2 changed files with 24 additions and 0 deletions
1
.dockerignore
Symbolic link
1
.dockerignore
Symbolic link
|
@ -0,0 +1 @@
|
|||
.gitignore
|
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
FROM rust:1.62 AS labels
|
||||
|
||||
LABEL org.opencontainers.image.title="Patched Porobot"
|
||||
LABEL org.opencontainers.image.description="Legends of Runeterra card database utilities and bots"
|
||||
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
|
||||
LABEL org.opencontainers.image.url="https://github.com/Steffo99/patched-porobot"
|
||||
LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>"
|
||||
|
||||
|
||||
FROM labels AS files
|
||||
|
||||
WORKDIR /usr/src/patched_porobot
|
||||
COPY . .
|
||||
|
||||
|
||||
FROM files AS install
|
||||
|
||||
RUN cargo install --path . --all-features --bins
|
||||
|
||||
|
||||
FROM install AS environment
|
||||
|
||||
ENV RUST_LOG "warn,patched_porobot=info,patched_porobot_telegram=info,patched_porobot_discord=info,patched_porobot_matrix=info"
|
Loading…
Reference in a new issue