mirror of https://github.com/01-edu/public.git
xpetit
4 years ago
218 changed files with 298 additions and 267 deletions
@ -1,12 +1,22 @@ |
|||||||
FROM golang:1.14.6-alpine3.12 |
FROM docker.01-edu.org/golang:1.16.0-alpine3.13 |
||||||
|
|
||||||
ENV GIT_TERMINAL_PROMPT=0 |
ENV GIT_TERMINAL_PROMPT=0 |
||||||
RUN apk add --no-cache git |
RUN apk add --no-cache git |
||||||
|
|
||||||
RUN go get golang.org/x/tools/cmd/goimports |
RUN go get golang.org/x/tools/cmd/goimports |
||||||
RUN go get github.com/01-edu/z01 |
|
||||||
COPY . src |
RUN mkdir -p /jail/student |
||||||
RUN go get rc |
RUN touch /jail/student/go.mod |
||||||
RUN go install rc prog/... |
|
||||||
|
WORKDIR /public/go/tests |
||||||
|
COPY go.* ./ |
||||||
|
RUN go mod download |
||||||
|
COPY base base |
||||||
|
COPY func func |
||||||
|
COPY lib lib |
||||||
|
COPY prog prog |
||||||
|
COPY rc rc |
||||||
|
RUN go install ./rc ./prog/... |
||||||
|
|
||||||
COPY entrypoint.sh /usr/local/bin |
COPY entrypoint.sh /usr/local/bin |
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |
||||||
|
Some files were not shown because too many files changed in this diff diff.show_more
Loading…
Reference in new issue