Skip to content

Instantly share code, notes, and snippets.

@nicoavila
Created June 6, 2024 12:30
Show Gist options
  • Save nicoavila/6d27d5f4d50b191f85d664947a888b8d to your computer and use it in GitHub Desktop.
Save nicoavila/6d27d5f4d50b191f85d664947a888b8d to your computer and use it in GitHub Desktop.
A Dockerfile to run NodeJS apps inside Oracle Linux 9 using Instant Client v19 to communicate with Oracle Databases
# This assumes you have a start script in your package.json file
FROM oraclelinux:9
RUN dnf -y module enable nodejs:20 && \
dnf -y install nodejs npm
RUN dnf install oracle-instantclient-release-el9 && \
dnf -y install oracle-instantclient19.19-basic.x86_64
WORKDIR /app
COPY . .
RUN npm install
CMD [ "npm", "run", "start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment