Skip to content

Commit

Permalink
Add Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Oct 19, 2023
1 parent 67029b8 commit 0b40833
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM rust:slim-buster as builder
RUN apt-get -y update; \
apt-get install -y --no-install-recommends \
curl libssl-dev make clang-11 g++ llvm \
pkg-config libz-dev zstd git; \
apt-get autoremove -y; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*

WORKDIR /slot
COPY . .
RUN cargo build --release --config net.git-fetch-with-cli=true

FROM debian:buster-slim
LABEL description="Slot is a toolchain for rapidly spinning up managed Katana and Torii instances. Play test your game in seconds." \
authors="tarrence <[email protected]>" \
source="https://github.com/cartridge-gg/slot" \
documentation="https://github.com/cartridge-gg/slot"

RUN apt-get -y update; \
apt-get install -y --no-install-recommends \
curl; \
apt-get autoremove -y; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*

COPY --from=builder /slot/target/release/slot /usr/local/bin/slot

0 comments on commit 0b40833

Please sign in to comment.