Skip to content

Commit

Permalink
better cleanup after apt install
Browse files Browse the repository at this point in the history
  • Loading branch information
glyg committed Oct 4, 2022
1 parent 35535d8 commit 1a9949f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ LABEL org.opencontainers.image.created="unknown"
LABEL org.opencontainers.image.revision="unknown"
LABEL org.opencontainers.image.source="https://github.com/openmicroscopy/omero-server-docker"

ENV DEBIAN_FRONTEND=noninteractive


RUN mkdir /opt/setup
WORKDIR /opt/setup
ADD playbook.yml requirements.yml /opt/setup/
Expand All @@ -12,7 +15,8 @@ RUN apt update
RUN apt install -y ansible sudo ca-certificates dumb-init\
&& ansible-galaxy install -p /opt/setup/roles -r requirements.yml \
&& apt -y autoclean \
&& apt -y autoremove
&& apt -y autoremove \
&& rm -rf /var/lib/apt/lists/* /tmp/*


ARG OMERO_VERSION=5.6.5
Expand All @@ -24,7 +28,7 @@ RUN ansible-playbook playbook.yml \
-e omero_server_omego_additional_args="$OMEGO_ADDITIONAL_ARGS" \
&& apt -y autoclean \
&& apt -y autoremove \
&& rm -fr /var/cache
&& rm -rf /var/lib/apt/lists/* /tmp/*


ADD entrypoint.sh /usr/local/bin/
Expand Down

0 comments on commit 1a9949f

Please sign in to comment.