Skip to content

Commit

Permalink
docker: Support node:8 image until LTS fixed
Browse files Browse the repository at this point in the history
Relate-to:kelly/node-i2c#90
Change-Id: I2f46eb06c8a4daac29b58c706a3e559103867097
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Feb 25, 2019
1 parent a12a7f0 commit fe6ab42
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#.dockerignore
#.gitignore
*~
*.tmp
**/iotjs_modules/
**/node_modules/
/tmp/

23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MIT
# Copyright: 2018-present Samsung Electronics France SAS, and other contributors

FROM node:8
MAINTAINER Philippe Coval (p.coval@samsung.com)

ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANG ${LC_ALL}

ENV project color-sensor-js
ADD . /usr/local/${project}/${project}
WORKDIR /usr/local/${project}/${project}
RUN echo "#log: ${project}: Preparing sources" \
&& npm install \
&& sync

EXPOSE 8888
WORKDIR /usr/local/${project}/${project}
ENTRYPOINT [ "/usr/bin/make" ]
CMD [ "start" ]
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: MIT
# Copyright: 2018-present Samsung Electronics France SAS, and other contributors

version: "2"

services:
default:
build: .
command: start

0 comments on commit fe6ab42

Please sign in to comment.