From 188df3f143cd5200bb81d4464ca5cd8eab530840 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Sat, 22 Dec 2018 15:45:15 -0500 Subject: [PATCH] Dockerfile Dockerfile for building a docker image --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..0a62a27f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# Create an image based on https://github.com/mhart/alpine-node/tree/f7fedaee10cf8569f4e3eb2c3391eb244636acb6 +FROM mhart/alpine-node:10 + +# Create a directory where RTL app will be placed +RUN mkdir -p /usr/rtl + +# Change the work directory to run the commands +WORKDIR /usr/rtl + +# Copy all build files to the working directory +COPY RTL /usr/rtl + +# Install dependencies +RUN npm install + +# Get all the code needed to run the RTL app +COPY . /usr/rtl + +# Expose the port the app run on +EXPOSE 3000 + +#Run the app server +CMD ["node", "rtl", "--lndir", "$macaroondirectorypath"]