Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
beniroquai authored Sep 22, 2024
1 parent 89f5837 commit 74cb7bd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docker/HIK/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ FROM ubuntu:22.04
ARG TARGETPLATFORM
ENV TZ=America/Los_Angeles

# Install necessary dependencies
# Install necessary dependencies and prepare the environment as usual
RUN apt-get update && apt-get install -y \
wget \
unzip \
Expand Down Expand Up @@ -158,9 +158,12 @@ RUN git clone https://github.com/openUC2/UC2-REST /tmp/UC2-REST && \
/bin/bash -c "source /opt/conda/bin/activate imswitch && pip install -e /tmp/UC2-REST"


# Force a rebuild of the container
ARG CACHEBUST=1
RUN echo "Cache busting at ${CACHEBUST}"

# Always pull the latest version of ImSwitch and UC2-REST repositories
# Adding a dynamic build argument to prevent caching
ARG BUILD_DATE
RUN echo "Building on ${BUILD_DATE}"


# Clone the config folder
RUN cd /root/ImSwitchConfig && \
Expand Down Expand Up @@ -260,4 +263,4 @@ CMD ["/bin/bash", "-c", "\


# source /opt/conda/bin/activate imswitch
# python3 /tmp/ImSwitch/main.py --headless 1 --config-file example_virtual_microscope.json --config-folder /config
# python3 /tmp/ImSwitch/main.py --headless 1 --config-file example_virtual_microscope.json --config-folder /config

0 comments on commit 74cb7bd

Please sign in to comment.