use multistage to build a nodejs image with oracle instantclient
dockerfile come from https://blogs.oracle.com/opal/docker-for-oracle-database-applications-in-nodejs-and-python-part-1
page: https://hub.docker.com/r/playdingnow/node-oracle-ic
# This stage installs our modules
FROM node:12
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm i
# Then we copy over the modules from above onto a `slim` image
FROM playdingnow/node-oracle-ic:n12.16.1slim-ic19.5
WORKDIR /app
COPY --from=0 /app .
COPY . .
CMD ["node", "app.js"]
Content type
Image
Digest
Size
89.5 MB
Last updated
over 6 years ago
docker pull playdingnow/node-oracle-ic