Skip to content

Commit

Permalink
go images migrated to debian (#48)
Browse files Browse the repository at this point in the history
* go images migrated to debian

* added cleaning image
  • Loading branch information
polischuks authored Feb 15, 2024
1 parent c91a94e commit 0bebda1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion epicbox-go/Dockerfile
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

Expand Down
31 changes: 21 additions & 10 deletions epicbox-hyperskill/go/Dockerfile
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] && \
Expand Down

0 comments on commit 0bebda1

Please sign in to comment.