-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (19 loc) · 712 Bytes
/
Dockerfile
File metadata and controls
21 lines (19 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM openeuler/openeuler:22.03 AS installer
RUN groupadd dinstall -g 2001 && \
useradd -G dinstall -m -d /home/dmdba -s /bin/bash -u 2001 dmdba && \
chmod 777 /tmp &&\
yum install sudo -y && yum clean all
COPY DMInstall.bin /mnt/DMInstall.bin
COPY setup.xml /tmp/setup.xml
RUN sudo -u dmdba /mnt/DMInstall.bin -q /tmp/setup.xml
FROM openeuler/openeuler:22.03
RUN groupadd dinstall -g 2001 && \
useradd -G dinstall -m -d /home/dmdba -s /bin/bash -u 2001 dmdba && \
chmod 777 /tmp && \
yum install sudo -y && yum clean all
COPY --from=installer /home/dmdba/ /home/dmdba/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
USER root
EXPOSE 5236
ENTRYPOINT [ "/entrypoint.sh" ]