30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
# Reference copy: business-operation-manager Dockerfile_local (verified build 2026-08-12).
|
|
# Derived from the stock Dockerfile by dropping the "test" stage (needs ARANGO_DB_HOSTNAME)
|
|
# and the shared_resources COPY (CI-injected, absent locally).
|
|
# Copy to ~/projects/business-operation-manager/Dockerfile_local to use.
|
|
|
|
FROM artifactorycn.netcracker.com:17014/product/go-builder:1.26.4 AS base
|
|
|
|
ENV APP_ROOT=/tmp/project
|
|
COPY . ${APP_ROOT}
|
|
RUN chmod -R u+x ${APP_ROOT}/scripts && \
|
|
chmod -R u+x ${APP_ROOT}/*.sh && \
|
|
chgrp -R 0 ${APP_ROOT} && \
|
|
chmod -R g=u ${APP_ROOT} /etc/passwd
|
|
|
|
FROM base AS build
|
|
RUN cd ${APP_ROOT} && ${APP_ROOT}/application_build.sh
|
|
|
|
FROM artifactorycn.netcracker.com:17152/netcracker/qubership-core-base:2.3.7 AS release
|
|
|
|
COPY --chown=10001:10001 --from=build /tmp/project/scripts/* /bin/
|
|
COPY --chown=10001:10001 --from=build /tmp/project/business-operation-manager /bin/app
|
|
COPY --chown=10001:10001 --from=build /tmp/project/resources/policies.conf /opt/policies/
|
|
COPY --chown=10001:10001 --from=build /tmp/project/resources/business-operation-manager-public-api.json /opt/resources/business-operation-manager-public-api.json
|
|
|
|
EXPOSE 8080
|
|
|
|
USER 10001:10001
|
|
|
|
CMD [ "/bin/app" ]
|