Skip to content

Commit

Permalink
Fix Hadolint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rzuckerm committed Dec 15, 2024
1 parent eb46829 commit 36f8351
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions PrimeWhitespace/solution_1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
FROM ubuntu:24.04

WORKDIR /tmp
RUN apt-get update && \
apt-get install -y git make python3 ghc && \
mkdir -p /opt && \
cd /opt && \
apt-get install -y ghc git make python3 && \
git clone --depth 1 https://github.com/TryItOnline/WSpace && \
cd WSpace && \
apt-get remove -y git && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

WORKDIR /tmp/WSpace
RUN apt-get update && \
apt-get install -y make && \
make && \
cp wspace /usr/bin/whitespace && \
cd / && \
apt-get remove -y git make && \
apt-get remove -y make && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /opt/WSpace
rm -rf /var/lib/apt/lists/* /tmp/WSpace

WORKDIR /opt/app
COPY *.ws *.sh *.py ./
Expand Down

0 comments on commit 36f8351

Please sign in to comment.