change to docker ignore

This commit is contained in:
Torben Haack 2024-10-10 12:20:37 +02:00
parent 0ec6c4af57
commit cdb17d63c9
3 changed files with 3 additions and 10 deletions

View File

@ -13,13 +13,6 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app
COPY pnpm-lock.yaml /usr/src/app
# Install build tools
#RUN apt-get update && apt-get install -y \
# libsqlite3-dev \
# build-essential \
# && rm -rf /var/lib/apt/lists/*
# Install pnpm
RUN corepack enable pnpm

View File

@ -9,9 +9,9 @@ BUILDER_NAME="myp-rp-arm64-builder"
echo "Creating a new builder instance named $BUILDER_NAME..."
docker buildx create --name $BUILDER_NAME --use
# Build the Docker image from Containerfile for arm64
echo "Building Docker image from Containerfile for arm64..."
docker buildx build --platform linux/arm64 -t ${IMAGE_NAME}:${IMAGE_TAG} -f $PWD/Containerfile $PWD --output type=docker,dest=docker/${IMAGE_NAME}_${IMAGE_TAG}.tar
# Build the Docker image from Dockerfile for arm64
echo "Building Docker image from Dockerfile for arm64..."
docker buildx build --platform linux/arm64 -t ${IMAGE_NAME}:${IMAGE_TAG} -f $PWD/Dockerfile $PWD --output type=docker,dest=docker/${IMAGE_NAME}_${IMAGE_TAG}.tar
# Check if the build was successful
if [ $? -ne 0 ]; then