Skip to content

Commit

Permalink
Switch to apt-get for package installation
Browse files Browse the repository at this point in the history
Replaced apk package manager with apt-get to ensure compatibility with certain dependencies. This change involved updating and installing a broader range of system libraries and tools. Clean-up steps were added to reduce the image size.
  • Loading branch information
meanmail committed Nov 7, 2024
1 parent 5412a38 commit 305e959
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions epicbox-hyperskill/node-javascript/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
FROM hyperskill.azurecr.io/node:18.20.4-bullseye-slim

RUN apk add --no-cache python3 openjdk17-jdk curl bash

RUN apk add --no-cache python3-dev py3-pip gcc musl-dev linux-headers && \
pip3 install https://github.com/hyperskill/hs-test-python/archive/v10.0.2.tar.gz && \
apk del --no-cache python3-dev py3-pip gcc musl-dev linux-headers
RUN apt-get update && \
apt-get install -y python3 openjdk-17-jdk curl unzip \
gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 \
libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 \
libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 \
libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates \
fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && \
apt-get clean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*

RUN mkdir /checker && \
curl -L -o /checker/kotlin.zip \
Expand Down

0 comments on commit 305e959

Please sign in to comment.