mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
Don't include .git folder and instead provide RELEASE_VERSION env var in Dockerfile
(#1094)
<!-- The PR description should answer 2 important questions: --> ### What The `Dockerfile` for `v3-engine` is provided for local development, and is not what we use for production builds. Therefore there is no need to version stamp it, so instead, provide `RELEASE_VERSION=dev` and don't include the `.git` folder as this breaks when building from the `graphql-engine` repo. ### How Changes to root `Dockerfile`. V3_GIT_ORIGIN_REV_ID: 6ed7ad43456c709e24b7768417436dcf6123adfa
This commit is contained in:
parent
a33dc2e1a7
commit
3e2a0ed690
@ -18,6 +18,9 @@ ENV PATH="$PATH:$CARGO_HOME/bin"
|
||||
ENV RUSTFLAGS="-C link-arg=-fuse-ld=lld"
|
||||
# Building with build.rs requires the Git context to be available across volumes.
|
||||
ENV GIT_DISCOVERY_ACROSS_FILESYSTEM=1
|
||||
# This Dockerfile is only for local development, we don't need to stamp it with
|
||||
# a version
|
||||
ENV RELEASE_VERSION=dev
|
||||
|
||||
# Install Rust tools.
|
||||
COPY rust-toolchain.toml .
|
||||
@ -54,7 +57,6 @@ FROM builder AS built
|
||||
COPY .cargo ./.cargo
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY crates ./crates
|
||||
COPY .git ./.git
|
||||
|
||||
# Build the app
|
||||
RUN cargo build --release --all-targets
|
||||
|
Loading…
Reference in New Issue
Block a user