-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 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,12 @@ | ||
# A whitelist of files that should be included into docker | ||
# Put an exclaimation mark before everything to include | ||
|
||
# Ignore everything | ||
* | ||
|
||
# Allow the source code folders | ||
!/pumpkin*/ | ||
|
||
# Dependencies | ||
!Cargo.lock | ||
!Cargo.toml |
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,25 @@ | ||
FROM rust:1.79 AS builder | ||
WORKDIR /usr/src/pumpkin | ||
COPY . . | ||
RUN ls | ||
RUN cargo install --path ./pumpkin | ||
|
||
FROM rust | ||
WORKDIR /pumpkin | ||
RUN apt update && apt-get install -y libssl-dev pkg-config ca-certificates && rm -rf /var/lib/apt/lists/* | ||
COPY --from=builder /usr/local/cargo/bin/pumpkin /pumpkin/pumpkin | ||
CMD ["/pumpkin/pumpkin"] | ||
|
||
# FROM rust:1.79-alpine AS builder | ||
# WORKDIR /usr/src/pumpkin | ||
# COPY . . | ||
# RUN apk add openssl-dev libssl3 ca-certificates pkgconfig musl-dev | ||
# RUN cargo install --path ./pumpkin | ||
|
||
# FROM rust:1.79-alpine | ||
# WORKDIR /pumpkin | ||
# RUN apk add openssl ca-certificates pkgconfig | ||
# COPY --from=builder /usr/local/cargo/bin/pumpkin /pumpkin/pumpkin | ||
# CMD ["/pumpkin/pumpkin"] | ||
|
||
#docker run --rm -v "./world:/pumpkin/world" pumpkin |