Skip to content

Commit 9d31e0b

Browse files
committed
Update golang dockerfile
1 parent a3de075 commit 9d31e0b

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

containers/golang/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM frolvlad/alpine-go
1+
FROM alpine:3.6
22

3-
RUN apk add --no-cache bash
3+
RUN apk add --no-cache musl-dev bash go="1.8.4-r0"
44

55
COPY ./compile.sh /bin/compile.sh
66
COPY ./run.sh /bin/run.sh

tests/golang/runbox/program.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package main;
2+
3+
import "fmt";
4+
5+
func main() {
6+
var input string
7+
fmt.Scanf("%s", &input)
8+
fmt.Println("Hello " + input)
9+
}

tests/golang/runbox/run.stderr

Whitespace-only changes.

tests/golang/runbox/run.stdin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
World

tests/golang/runbox/run.stdout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello World

0 commit comments

Comments
 (0)