forked from wzheng1/oc_newapp_expose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (27 loc) · 1023 Bytes
/
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
FROM openshift/base-centos7
# https://docs.docker.com/engine/reference/builder/#env
# https://docs.docker.com/engine/reference/builder/#environment-replacement
ENV R3=8087
ENV R2="$R3"
ENV R1=$R2
ENV PORT 8080
ENV X=8084 RANGE=8085-8086 RECURSIVE="$R1"
ARG ARG_PORT=8090
ENV BRACES=8091
ENV LINE=8092
ENV LINE=8093 LINE2="${LINE}"
ENV OVERLAP=8092-8095
ENV DEFAULT="${MISSING:-8093}"
ENV OVERRIDE="${DEFAULT:+8094}"
ENV MISSING_OVERRIDE="${MISSING:+8094}"
ENV PORT_P 8100
ENV RANGE_P 8101-8105
ENV PROTO udp
ADD run.sh .
# expose range, env and regular port
# exp 8080 8081 8083 8084 8085 8087 8090 8091 8092 8092 8093 8094 warn and ignore for both 8100/udp 8101/udp
EXPOSE "$PORT" 8081-8082 8083 "$X" $RANGE $RECURSIVE $ARG_PORT ${BRACES} "${LINE2}" $OVERLAP $DEFAULT $OVERRIDE $MISSING_OVERRIDE ${PORT_P}/${PROTO} ${RANGE_P}/udp
# shouldn't take into account in previous EXPOSE
# env $PORT should evaluate to 8080 there
ENV PORT 10
ENTRYPOINT ["./run.sh"]