mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
560 B
25 lines
560 B
4 years ago
|
FROM docker.01-edu.org/golang:1.16.3-alpine3.13
|
||
5 years ago
|
|
||
4 years ago
|
ENV GIT_TERMINAL_PROMPT=0
|
||
4 years ago
|
RUN apk add --no-cache git
|
||
4 years ago
|
|
||
5 years ago
|
RUN go get golang.org/x/tools/cmd/goimports
|
||
4 years ago
|
RUN go get github.com/01-edu/rc
|
||
4 years ago
|
|
||
4 years ago
|
WORKDIR /piscine-go
|
||
|
RUN go mod init piscine-go
|
||
|
RUN go get github.com/01-edu/z01@v0.1.0
|
||
4 years ago
|
|
||
|
WORKDIR /public/go/tests
|
||
|
COPY go.* ./
|
||
|
RUN go mod download
|
||
|
COPY lib lib
|
||
4 years ago
|
COPY solutions solutions
|
||
|
COPY tests tests
|
||
|
RUN go install $(grep -rl ChallengeMain ./tests | rev | cut -d/ -f2- | rev)
|
||
4 years ago
|
|
||
4 years ago
|
RUN rm -rf /piscine-go
|
||
4 years ago
|
|
||
4 years ago
|
COPY entrypoint.sh /usr/local/bin
|
||
4 years ago
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|