@@ -8,11 +8,14 @@ RUN apt-get update && apt-get install -y git ffmpeg gosu bash && \
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Cache-busting mechanism
|
||||
ARG CACHE_BUST=0
|
||||
|
||||
# Copy the requirements file into the container
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Force Docker to always run this step
|
||||
RUN echo $CACHE_BUST && pip install --no-cache-dir --upgrade --force-reinstall -r requirements.txt
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
@@ -1 +1 @@
|
||||
docker buildx build --no-cache --push --platform linux/amd64,linux/arm64 --tag cooldockerizer93/spotizerr:dev .
|
||||
docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg CACHE_BUST=$(date +%s) --tag cooldockerizer93/spotizerr:dev .
|
||||
@@ -1 +1 @@
|
||||
docker buildx build --no-cache --push --platform linux/amd64,linux/arm64 --tag cooldockerizer93/spotizerr:latest .
|
||||
docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg CACHE_BUST=$(date +%s) --tag cooldockerizer93/spotizerr:latest .
|
||||
|
||||
Reference in New Issue
Block a user