Skip to content

Commit 9b562a1

Browse files
author
Krishna Puvvada
committed
updated dockerfiles
1 parent 4af0924 commit 9b562a1

6 files changed

Lines changed: 3 additions & 22 deletions

File tree

BuildYourOwnCanvasSamples/1.starter-full-bundle/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# Aggregates all code into a single Docker image for export
44
FROM node:12
55

6-
# Copy the bot code to /var/bot/
7-
ADD bot/ /var/build/bot/
86

97
# Copy the web server code to /var/web/
108
ADD web/ /var/build/web/
@@ -14,10 +12,6 @@ ADD web/ /var/build/web/
1412
ADD init.sh /var/build/
1513
ADD sshd_config /var/build/
1614

17-
# Doing a fresh "npm install" on build to make sure the image is reproducible
18-
WORKDIR /var/build/bot/
19-
RUN npm ci
20-
2115
# Doing a fresh "npm install" on build to make sure the image is reproducible
2216
WORKDIR /var/build/web/
2317
RUN npm ci

BuildYourOwnCanvasSamples/1.starter-full-bundle/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ service ssh start
66
# /usr/sbin/sshd
77

88
# Start both bot server and web server
9-
./node_modules/.bin/concurrently --kill-others --names "bot,web" "node bot" "node web"
9+
./node_modules/.bin/concurrently --kill-others --names "web" "node web"

BuildYourOwnCanvasSamples/2.file-uploading/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# Aggregates all code into a single Docker image for export
44
FROM node:12
55

6-
# Copy the bot code to /var/bot/
7-
ADD bot/ /var/build/bot/
86

97
# Copy the web server code to /var/web/
108
ADD web/ /var/build/web/
@@ -14,10 +12,6 @@ ADD web/ /var/build/web/
1412
ADD init.sh /var/build/
1513
ADD sshd_config /var/build/
1614

17-
# Doing a fresh "npm install" on build to make sure the image is reproducible
18-
WORKDIR /var/build/bot/
19-
RUN npm ci
20-
2115
# Doing a fresh "npm install" on build to make sure the image is reproducible
2216
WORKDIR /var/build/web/
2317
RUN npm ci

BuildYourOwnCanvasSamples/2.file-uploading/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ service ssh start
66
# /usr/sbin/sshd
77

88
# Start both bot server and web server
9-
./node_modules/.bin/concurrently --kill-others --names "bot,web" "node bot" "node web"
9+
./node_modules/.bin/concurrently --kill-others --names "web" "node web"

BuildYourOwnCanvasSamples/3.location-processing/Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
# Aggregates all code into a single Docker image for export
44
FROM node:12
55

6-
# Copy the bot code to /var/bot/
7-
ADD bot/ /var/build/bot/
8-
96
# Copy the web server code to /var/web/
107
ADD web/ /var/build/web/
118

@@ -14,10 +11,6 @@ ADD web/ /var/build/web/
1411
ADD init.sh /var/build/
1512
ADD sshd_config /var/build/
1613

17-
# Doing a fresh "npm install" on build to make sure the image is reproducible
18-
WORKDIR /var/build/bot/
19-
RUN npm ci
20-
2114
# Doing a fresh "npm install" on build to make sure the image is reproducible
2215
WORKDIR /var/build/web/
2316
RUN npm ci

BuildYourOwnCanvasSamples/3.location-processing/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ service ssh start
66
# /usr/sbin/sshd
77

88
# Start both bot server and web server
9-
./node_modules/.bin/concurrently --kill-others --names "bot,web" "node bot" "node web"
9+
./node_modules/.bin/concurrently --kill-others --names "web" "node web"

0 commit comments

Comments
 (0)