Commit 19b3c909 authored by sagar arora's avatar sagar arora

expose ports in ubuntu dockerfile

parent 2ff8a8ae
...@@ -37,14 +37,14 @@ COPY tmp/entitlement/*.pem /etc/pki/entitlement ...@@ -37,14 +37,14 @@ COPY tmp/entitlement/*.pem /etc/pki/entitlement
RUN rm -f /etc/rhsm-host && \ RUN rm -f /etc/rhsm-host && \
yum repolist --disablerepo=* && \ yum repolist --disablerepo=* && \
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms && \ subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms && \
yum update -y && \ yum update -y && \
yum install -y \ yum install -y \
psmisc \ psmisc \
git \ git \
diffutils \ diffutils \
file && \ file && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# Some GIT configuration command quite useful # Some GIT configuration command quite useful
RUN /bin/bash -c "if [[ -v NEEDED_GIT_PROXY ]]; then git config --global http.proxy $NEEDED_GIT_PROXY; fi" RUN /bin/bash -c "if [[ -v NEEDED_GIT_PROXY ]]; then git config --global http.proxy $NEEDED_GIT_PROXY; fi"
...@@ -72,7 +72,6 @@ RUN rm /etc/pki/entitlement/*pem ...@@ -72,7 +72,6 @@ RUN rm /etc/pki/entitlement/*pem
# TARGET IMAGE # TARGET IMAGE
#--------------------------------------------------------------------- #---------------------------------------------------------------------
FROM registry.access.redhat.com/ubi8/ubi:latest as oai-smf FROM registry.access.redhat.com/ubi8/ubi:latest as oai-smf
ENV TZ=Europe/Paris ENV TZ=Europe/Paris
# We install some debug tools for the moment in addition of mandatory libraries # We install some debug tools for the moment in addition of mandatory libraries
RUN yum update -y && \ RUN yum update -y && \
...@@ -109,9 +108,8 @@ COPY --from=oai-smf-builder /openair-smf/etc/smf.conf . ...@@ -109,9 +108,8 @@ COPY --from=oai-smf-builder /openair-smf/etc/smf.conf .
WORKDIR /openair-smf WORKDIR /openair-smf
# expose ports # expose ports
#EXPOSE 80/tcp 9090/tcp 8805/udp EXPOSE 80/tcp 9090/tcp 8805/udp
CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"]
ENTRYPOINT ["/openair-smf/bin/entrypoint.sh"] ENTRYPOINT ["/openair-smf/bin/entrypoint.sh"]
#CMD ["sleep", "infinity"]
CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"]
\ No newline at end of file
...@@ -91,6 +91,8 @@ COPY --from=oai-smf-builder /openair-smf/etc/smf.conf . ...@@ -91,6 +91,8 @@ COPY --from=oai-smf-builder /openair-smf/etc/smf.conf .
WORKDIR /openair-smf WORKDIR /openair-smf
EXPOSE 80/tcp 9090/tcp 8805/udp
ENTRYPOINT ["/bin/bash","/openair-smf/bin/entrypoint.sh"] ENTRYPOINT ["/bin/bash","/openair-smf/bin/entrypoint.sh"]
CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"] CMD ["/openair-smf/bin/oai_smf", "-c", "/openair-smf/etc/smf.conf", "-o"]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment