forked from ome/omero-server-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (31 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM ubuntu:20.04
LABEL maintainer="[email protected]"
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/
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 \
&& rm -rf /var/lib/apt/lists/* /tmp/*
ARG OMERO_VERSION=5.6.6
ARG OMEGO_ADDITIONAL_ARGS=
ENV OMERODIR=/opt/omero/server/OMERO.server/
RUN ansible-playbook playbook.yml \
-e omero_server_release=$OMERO_VERSION \
-e omero_server_omego_additional_args="$OMEGO_ADDITIONAL_ARGS" \
&& apt -y autoclean \
&& apt -y autoremove \
&& rm -rf /var/lib/apt/lists/* /tmp/*
ADD entrypoint.sh /usr/local/bin/
ADD 50-config.py 60-database.sh 90-public.sh 99-run.sh /startup/
USER omero-server
EXPOSE 4063 4064
ENV PATH=$PATH:/opt/ice/bin
VOLUME ["/OMERO", "/opt/omero/server/OMERO.server/var"]
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]