feat(docker): add tini to docker image (#1017)

pull/1068/head
ᗪєνιη ᗷυнʟ 4 years ago committed by GitHub
parent 594aad9d3a
commit 1629d02f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,12 +22,13 @@ RUN echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json
FROM node:14.16-alpine FROM node:14.16-alpine
RUN apk add --no-cache tzdata RUN apk add --no-cache tzdata tini
# copy from build image # copy from build image
COPY --from=BUILD_IMAGE /app /app COPY --from=BUILD_IMAGE /app /app
WORKDIR /app WORKDIR /app
CMD yarn start ENTRYPOINT [ "/sbin/tini", "--" ]
CMD [ "yarn", "start" ]
EXPOSE 5055 EXPOSE 5055

Loading…
Cancel
Save