Open cory-weiner opened 6 months ago
Try this and tweak to your specific use case:
FROM node:16-buster as builder
WORKDIR /app
# Fix JVM libjvm.so not found
ENV LD_LIBRARY_PATH=/usr/lib/jvm/java-11-openjdk-amd64/lib/server
RUN apt-get update
RUN apt-get install make g++ python3 default-jdk -y
RUN ln -sf /usr/bin/python3 /usr/bin/python
ENV PYTHON /usr/bin/python3
# Installing dependencies
COPY package*.json /app
RUN yarn install
# Copying source files
COPY . /app
RUN yarn build
ENV PORT 3000
EXPOSE 3000
CMD ["yarn", "start:prod"]
I've got this library working on my local OSX machine, but I'm struggling to get it running in a docker image.
My image file starts with an Ubuntu instance with JDK8 preinstalled. I think install node 16.15.0 and python:
The error I get: