-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: Support node:8 image until LTS fixed
Relate-to:kelly/node-i2c#90 Change-Id: I2f46eb06c8a4daac29b58c706a3e559103867097 Signed-off-by: Philippe Coval <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2019-present Samsung Electronics France SAS, and other contributors | ||
#.dockerignore | ||
#.gitignore | ||
*~ | ||
*.tmp | ||
**/iotjs_modules/ | ||
**/node_modules/ | ||
/tmp/ | ||
|
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
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: Apache-2.0 | ||
# Copyright: 2019-present Samsung Electronics France SAS, and other contributors | ||
|
||
FROM node:8 | ||
MAINTAINER Philippe Coval ([email protected]) | ||
|
||
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" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright: 2018-present Samsung Electronics France SAS, and other contributors | ||
|
||
version: "2" | ||
|
||
services: | ||
default: | ||
build: . | ||
command: start |