diff --git a/.vscode/tasks.json b/.vscode/tasks.json index e597ffa..7592127 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,13 +4,23 @@ "version": "2.0.0", "tasks": [ { - "label": "go build", + "label": "Local Build", "type": "shell", "command": "cd mandelmapper ; go build", "group": { "kind": "build", "isDefault": true } + }, + { + "label": "Raspberry Pi 3 Build", + "type": "shell", + "command": "cd mandelmapper ; export GOOS=linux ; export GOARCH=arm ; export GOARM=7 ; go build", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] } ] } \ No newline at end of file diff --git a/mandelmapper/dockerfile b/mandelmapper/dockerfile new file mode 100644 index 0000000..fe27a63 --- /dev/null +++ b/mandelmapper/dockerfile @@ -0,0 +1,7 @@ +FROM resin/raspberrypi3-alpine +COPY mandelmapper /usr/bin + + +EXPOSE 6161:6161 +CMD mandelmapper +