Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/ ./
Expand All @@ -23,4 +24,6 @@ COPY --from=builder --chown=devtron:devtron /app/config/ ./config/

USER devtron

ENTRYPOINT ["/tini", "--"]

CMD ["node","server.js"]
Loading