-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
38 lines (28 loc) · 1.12 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
FROM rockylinux:9
LABEL maintainer="[email protected]"
RUN mkdir /opt/setup
WORKDIR /opt/setup
ADD playbook.yml requirements.yml /opt/setup/
RUN dnf -y install epel-release
RUN dnf install -y glibc-langpack-en
ENV LANG en_US.utf-8
RUN dnf -y install ansible-core sudo
RUN ansible-galaxy collection install ansible.posix
RUN ansible-galaxy collection install community.general
RUN ansible-galaxy install -p /opt/setup/roles -r requirements.yml \
&& dnf -y clean all \
&& rm -fr /var/cache
RUN ansible-playbook playbook.yml -e 'ansible_python_interpreter=/usr/bin/python3' \
&& dnf -y clean all \
&& rm -fr /var/cache
RUN curl -L -o /usr/local/bin/dumb-init \
https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64 && \
chmod +x /usr/local/bin/dumb-init
ADD entrypoint.sh /usr/local/bin/
ADD 50-config.py 60-default-web-config.sh 98-cleanprevious.sh 99-run.sh /startup/
ADD ice.config /opt/omero/web/OMERO.web/etc/
USER omero-web
EXPOSE 4080
VOLUME ["/opt/omero/web/OMERO.web/var"]
ENV OMERODIR=/opt/omero/web/OMERO.web/
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]