Merge pull request #49 from JeffVandrewJr/master

Dockerfile & CircleCI Changes
This commit is contained in:
saubyk 2019-02-15 19:01:12 -05:00 committed by GitHub
commit f3df7823f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 15 deletions

View File

@ -37,4 +37,4 @@ workflows:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)-docker*/
only: /v[0-9]+(\.[0-9]+)*/

View File

@ -1,23 +1,13 @@
# Create an image based on https://github.com/mhart/alpine-node/tree/f7fedaee10cf8569f4e3eb2c3391eb244636acb6
FROM mhart/alpine-node:10
FROM node:10-alpine
# Create a directory where RTL app will be placed
RUN mkdir -p /usr/rtl
WORKDIR /RTL
# Change the work directory to run the commands
WORKDIR /usr/rtl
# Copy all build files to the working directory
COPY RTL /usr/rtl
COPY . /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"]
ENTRYPOINT ["node", "rtl"]