1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-25 12:34:19 +00:00

Revert "Improve Docker build caching"

This reverts commit d2a7831d4c.
This commit is contained in:
Steffo 2024-07-12 05:19:04 +02:00
parent f65f9b496b
commit fad849262e
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -60,18 +60,6 @@ RUN \
apt-get install --assume-yes libpq-dev:armhf; \ apt-get install --assume-yes libpq-dev:armhf; \
fi fi
COPY ./Cargo.toml ./Cargo.toml
COPY ./Cargo.lock ./Cargo.lock
RUN \
if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
RUSTTARGET=x86_64-unknown-linux-gnu; \
elif [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
RUSTTARGET=aarch64-unknown-linux-gnu; \
elif [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \
RUSTTARGET=armv7-unknown-linux-gnueabihf; \
fi && \
cargo fetch --locked --target=${RUSTTARGET}
COPY ./ ./ COPY ./ ./
# This has reached a new level of hack # This has reached a new level of hack