mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
Git inside build (#681)
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
!/pumpkin*/
|
||||
!/assets
|
||||
|
||||
# Allow build.rs to read git commit sha
|
||||
!/.git
|
||||
|
||||
# Dependencies
|
||||
!Cargo.lock
|
||||
!Cargo.toml
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
FROM rust:1-alpine3.21 AS builder
|
||||
ARG GIT_VERSION=Docker
|
||||
ENV GIT_VERSION=$GIT_VERSION
|
||||
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
||||
RUN apk add --no-cache musl-dev
|
||||
RUN apk add --no-cache musl-dev \
|
||||
# Required for git-version
|
||||
git
|
||||
|
||||
WORKDIR /pumpkin
|
||||
COPY . /pumpkin
|
||||
|
||||
Reference in New Issue
Block a user