Browse Source

Use the same Docker image to run programs during exams

pull/693/head
xpetit 4 years ago
parent
commit
1c95efed19
No known key found for this signature in database
GPG Key ID: 97C60669182C17A5
  1. 8
      go/exam/Dockerfile
  2. 6
      go/exam/entrypoint.sh

8
go/exam/Dockerfile

@ -1,8 +0,0 @@
FROM golang:1.14.6-alpine3.12
ENV GIT_TERMINAL_PROMPT=0
RUN apk add --no-cache git
RUN go get github.com/01-edu/z01
COPY entrypoint.sh /usr/local/bin
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

6
go/exam/entrypoint.sh

@ -1,6 +0,0 @@
#!/bin/sh
set -e
go build -o exe ./student
./exe "$@"
Loading…
Cancel
Save