Skip to content

Instantly share code, notes, and snippets.

@sabonis
Created May 28, 2018 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sabonis/6d118e2a0c0b67fbfb180fddf013d726 to your computer and use it in GitHub Desktop.
Save sabonis/6d118e2a0c0b67fbfb180fddf013d726 to your computer and use it in GitHub Desktop.
dockerfile node with openjdk8
FROM node:10.2.1
# Install Java.
RUN \
echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y -t jessie-backports openjdk-8-jdk && \
rm -rf /var/lib/apt/lists/*
RUN mkdir /app
# production
#COPY . /app
#RUN yarn
VOLUME /app
WORKDIR /app
EXPOSE 3000
CMD ["yarn", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment