Skip to content

Instantly share code, notes, and snippets.

@crowjdh
Last active December 12, 2022 03:06
Show Gist options
  • Save crowjdh/b21719ce40d7cab4ccaaf362fa912a78 to your computer and use it in GitHub Desktop.
Save crowjdh/b21719ce40d7cab4ccaaf362fa912a78 to your computer and use it in GitHub Desktop.

Build

user@host $ mkdir node-arch && cd node-arch
user@host $ vim Dockerfile

Dockerfile

FROM ubuntu:20.04

RUN apt update && apt install -y vim git libaio1 curl build-essential gettext-base
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt install nodejs

From host machine

$ docker build -t node-arch ./
$ docker run -ti --rm node-arch bash

Inside the container

# mkdir asdf && cd asdf
# npm i oracle/node-oracledb#v4.0.1
# node -e "console.log(require('oracledb'))"

Output

OracleDb { queueTimeout: 60000, Promise: [Function: Promise] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment