forked from StepicOrg/epicbox-images
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* go images migrated to debian * added cleaning image
- Loading branch information
1 parent
c91a94e
commit 0bebda1
Showing
2 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.21.6 | ||
FROM golang:1.21-bullseye | ||
|
||
ENV GO111MODULE=on | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
FROM golang:1.21.6-alpine | ||
FROM golang:1.21-bullseye | ||
|
||
ENV GO111MODULE=on | ||
|
||
RUN apk add --no-cache python3 openjdk17-jdk curl bash | ||
|
||
RUN apk add --no-cache python3-dev py3-pip gcc musl-dev linux-headers && \ | ||
python3 -m venv /venv && \ | ||
. /venv/bin/activate && \ | ||
pip install aiosmtpd beautifulsoup4 pyyaml && \ | ||
pip install https://github.com/hyperskill/hs-test-python/archive/v11.0.0.tar.gz && \ | ||
apk del --no-cache python3-dev py3-pip linux-headers | ||
RUN apt-get update && apt-get install -y \ | ||
python3 \ | ||
python3-venv \ | ||
python3-pip \ | ||
openjdk-17-jdk \ | ||
curl \ | ||
bash \ | ||
gcc \ | ||
linux-headers-amd64 \ | ||
unzip \ | ||
&& python3 -m venv /venv \ | ||
&& . /venv/bin/activate \ | ||
&& pip install aiosmtpd beautifulsoup4 pyyaml \ | ||
&& pip install https://github.com/hyperskill/hs-test-python/archive/v11.0.0.tar.gz \ | ||
&& apt-get remove -y gcc python3-dev linux-headers-amd64 \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* | ||
|
||
RUN mkdir /checker && \ | ||
curl -L -o /checker/kotlin.zip \ | ||
https://github.com/JetBrains/kotlin/releases/download/v1.9.22/kotlin-compiler-1.9.22.zip && \ | ||
unzip /checker/kotlin.zip -d /checker && \ | ||
rm /checker/kotlin.zip && \ | ||
curl -L -o /checker/hs-test.jar \ | ||
https://github.com/hyperskill/hs-test/releases/download/v11.0.0/hs-test-11.0.0.jar | ||
https://github.com/hyperskill/hs-test/releases/download/v11.0.0/hs-test-v11.0.0.jar | ||
|
||
ENV PATH="/checker/kotlinc/bin:$PATH" | ||
|
||
COPY checker /checker/ | ||
|
||
WORKDIR /sandbox | ||
|
||
RUN go mod init sandbox && \ | ||
go get github.com/PuerkitoBio/[email protected] && \ | ||
go get github.com/gin-gonic/[email protected] && \ | ||
|