Created
May 28, 2018 10:00
-
-
Save sabonis/6d118e2a0c0b67fbfb180fddf013d726 to your computer and use it in GitHub Desktop.
dockerfile node with openjdk8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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