ARG NEXUS_PROXY_REPO | |
FROM ${NEXUS_PROXY_REPO}node:16-alpine3.12 | |
ENV NODE_ENV=production | |
WORKDIR /usr/src/app/cert | |
# Need trailing slash on dest for multiple file copy | |
COPY cert/*.crt ./ | |
COPY cert/pass . | |
WORKDIR /usr/src/app | |
COPY http_proxy.js . | |
RUN groupadd -g 999 appuser && \ | |
useradd -r -u 999 -g appuser appuser | |
USER appuser | |
CMD [ "node", "http_proxy.js" ] |