@@ -8,11 +8,14 @@ RUN apt-get update && apt-get install -y git ffmpeg gosu bash && \
|
|||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Cache-busting mechanism
|
||||||
|
ARG CACHE_BUST=0
|
||||||
|
|
||||||
# Copy the requirements file into the container
|
# Copy the requirements file into the container
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
# Install Python dependencies
|
# Force Docker to always run this step
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN echo $CACHE_BUST && pip install --no-cache-dir --upgrade --force-reinstall -r requirements.txt
|
||||||
|
|
||||||
# Copy application code
|
# Copy application code
|
||||||
COPY . .
|
COPY . .
|
||||||
@@ -26,4 +29,4 @@ EXPOSE 7171
|
|||||||
|
|
||||||
# Set entrypoint to handle user permission setup
|
# Set entrypoint to handle user permission setup
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["python", "app.py"]
|
CMD ["python", "app.py"]
|
||||||
|
|||||||
@@ -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