Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 45 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ RUN apt update && \
curl


# Install Go 1.26.x
# https://go.dev/dl/
RUN cd /tmp && \
curl --remote-name --location https://go.dev/dl/go1.26.3.linux-${BUILDARCH}.tar.gz && \
tar xzf go1.26.3.linux-${BUILDARCH}.tar.gz && \
rm --force go1.26.3.linux-${BUILDARCH}.tar.gz && \
Comment thread
dmalan marked this conversation as resolved.
mv go /opt/ && \
mkdir --parent /opt/bin && \
ln --symbolic /opt/go/bin/* /opt/bin/ && \
chmod a+rx /opt/bin/*


# Install Java 25.x
# https://jdk.java.net/25/
RUN cd /tmp && \
Expand Down Expand Up @@ -225,6 +237,31 @@ RUN curl https://packagecloud.io/install/repositories/cs50/repo/script.deb.sh |
libcs50


# Install Python packages
RUN pip3 install --no-cache-dir \
autopep8 \
cachelib \
"check50<4" \
cli50 \
compare50 \
cs50==9.4.0 \
Flask \
Flask-Session \
help50 \
pytest \
render50 \
setuptools \
"style50>=3.0.0" \
"submit50<4" \
lib50


# Install BFG
# https://rtyley.github.io/bfg-repo-cleaner/
RUN mkdir --parents /opt/share && \
curl --location https://repo1.maven.org/maven2/com/madgag/bfg/1.15.0/bfg-1.15.0.jar --output /opt/share/bfg.jar


# Install Docker CLI
# https://docs.docker.com/engine/install/ubuntu/
# https://docs.docker.com/engine/install/linux-postinstall/
Expand All @@ -243,30 +280,15 @@ RUN apt update && \
groupadd docker


# Install BFG
# https://rtyley.github.io/bfg-repo-cleaner/
RUN mkdir --parents /opt/share && \
curl --location https://repo1.maven.org/maven2/com/madgag/bfg/1.15.0/bfg-1.15.0.jar --output /opt/share/bfg.jar

# Install GitHub CLI
# https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian
RUN cd /tmp && \
curl --remote-name https://cli.github.com/packages/githubcli-archive-keyring.gpg && \
mv githubcli-archive-keyring.gpg /etc/apt/keyrings/ && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
apt update && \
apt install gh --no-install-recommends --no-install-suggests --yes

# Install Python packages
RUN pip3 install --no-cache-dir \
autopep8 \
cachelib \
"check50<4" \
cli50 \
compare50 \
cs50==9.4.0 \
Flask \
Flask-Session \
help50 \
pytest \
render50 \
setuptools \
"style50>=3.0.0" \
"submit50<4" \
lib50


# Copy files to image
COPY ./etc /etc
Expand Down
Loading