Commit dd007930 authored by Federico Sismondi's avatar Federico Sismondi

automated iut dockerfile for node-wot

parent 137d9414
FROM node:10
# Create app directory
WORKDIR /usr/src/app
# Bundle app source
COPY . .
RUN git clone https://github.com/eclipse/thingweb.node-wot
WORKDIR thingweb.node-wot
RUN npm install
#RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
#RUN apt-get install -y nodejs
#RUN npm install
# If you are building your code for production
# RUN npm install --only=production
RUN npm run build
EXPOSE 8080
CMD [ "npm packages/cli/dist/cli.js examples/scripts/counter.js"]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment