-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improves the build script with
SOURCE_DIR
env var, adds Dockerfile …
…and example docker-compose.yml
- Loading branch information
Showing
4 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/content.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# syntax=docker/dockerfile:labs | ||
|
||
FROM rust:1.82 AS builder | ||
|
||
WORKDIR /usr/src/app | ||
COPY src/ src/ | ||
COPY build.rs build.rs | ||
COPY Cargo.toml Cargo.toml | ||
|
||
ADD https://github.com/OpenDreamProject/od-dm-reference.git#main /usr/ref | ||
|
||
RUN SOURCE_DIR=/usr/ref/content cargo install --path . | ||
|
||
FROM debian:bookworm-slim | ||
# RUN apt-get update && apt-get install -y libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/* | ||
COPY --from=builder /usr/local/cargo/bin/od_ref_bot /usr/local/bin/od_ref_bot | ||
|
||
CMD ["od_ref_bot"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
od_ref_bot: | ||
image: od_ref_bot | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
|
||
environment: | ||
GITHUB_TOKEN: "some_token" |