-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (32 loc) · 1.32 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
#name of container: docker-pade
#version of container: 6.0.2
FROM quantumobject/docker-baseimage:20.04
MAINTAINER Claude Stabile "[email protected]"
#Installation of needed packages...
#Java, mysql client, vim & TZ
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q openjdk-16-jdk && DEBIAN_FRONTEND=noninteractive apt-get install -y -q vim && DEBIAN_FRONTEND=noninteractive apt-get install -y -q mysql-client && DEBIAN_FRONTEND=noninteractive apt-get install -y -q tzdata\
&& apt-get clean \
&& apt-get autoremove \
&& rm -rf /tmp/* /var/tmp/* \
&& rm -rf /var/lib/apt/lists/*
##startup scripts
RUN mkdir -p /etc/my_init.d
COPY startup.sh /etc/my_init.d/startup.sh
RUN chmod +x /etc/my_init.d/startup.sh
##deamons
# add openfire start & run
# Usernode
#
RUN groupadd -g 2000 openfire
RUN useradd openfire -u 2000 -g 2000
RUN mkdir /etc/service/openfire
COPY openfire.sh /etc/service/openfire/run
RUN chmod +x /etc/service/openfire/run
COPY pre-conf.sh /sbin/pre-conf
RUN chmod +x /sbin/pre-conf; sync \
&& /bin/bash -c /sbin/pre-conf \
&& rm /sbin/pre-conf
#Expose port adjust to your need
EXPOSE 7443 7777 9090 9091 5000-5100/udp 5000-6000/tcp 10000-10050/udp
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]