-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (27 loc) · 909 Bytes
/
Dockerfile
File metadata and controls
39 lines (27 loc) · 909 Bytes
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
FROM openmicroscopy/devagent:0.8.2
LABEL org.opencontainers.image.authors="OME"
ADD ./settings.env /home/settings.env
RUN chmod +x /home/settings.env
# ant for iviewer, make for nodejs
RUN dnf -y install ant make
RUN curl -sL https://rpm.nodesource.com/setup_20.x | bash
RUN dnf install -y nodejs
EXPOSE 4080
ADD ./run.sh /tmp/run.sh
RUN chown omero:omero /tmp/run.sh
RUN chmod a+x /tmp/run.sh
RUN dnf install -y python3.11 openssl python3.11-pip
RUN pip3.11 install build
RUN dnf clean all
# Change user id to fix permissions issues
ARG USER_ID=1000
RUN usermod -u $USER_ID omero
RUN chown -R omero:omero /home/omero/
# make sure mounted volumes has correct permissions
RUN mkdir -p /home/omero/nginx
RUN chown -R omero:omero /home/omero/nginx
RUN mkdir -p /home/omero/static
RUN chown -R omero:omero /home/omero/static
VOLUME ["/home/omero", "/home/omero/nginx"]
USER omero
CMD ["/tmp/run.sh"]