diff --git a/Dockerfile b/Dockerfile index 258bfaf..dc160da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,12 +9,13 @@ RUN yarn build-ts FROM node:14.2.0 -RUN groupadd -r devtron && useradd -r -g devtron devtron ENV TINI_VERSION v0.18.0 -RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && echo $arch && wget https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${arch} -O /tini -RUN chmod +x /tini -ENTRYPOINT ["/tini", "--"] + +RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && echo $arch && wget https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${arch} -O /tini && \ + groupadd -r devtron && useradd -r -g devtron devtron && \ + apt autoremove -y && \ + rm -rf /var/lib/apt/lists/* WORKDIR /app COPY --from=builder --chown=devtron:devtron /app/dist/ ./ @@ -23,4 +24,6 @@ COPY --from=builder --chown=devtron:devtron /app/config/ ./config/ USER devtron +ENTRYPOINT ["/tini", "--"] + CMD ["node","server.js"]