ThinkDeepTech/thinkdeep

View on GitHub
packages/deep-microservice-gateway/Dockerfile

Summary

Maintainability
Test Coverage
FROM nikolaik/python-nodejs:python3.9-nodejs16

ARG PORT

WORKDIR /usr/src/app

COPY src/ ./src

COPY package.json ./

RUN yarn install

EXPOSE $PORT

# NOTE: Do not use npm to run a script as the CMD. When k8s shuts the pod down npm doesn't
# propagate the SIGTERM signal to child processes which keeps cleanup code from executing.
CMD ["node", "./src/index.js"]