File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11FROM gcc:12.2.0-bullseye
22
3- RUN apt-get update
4- RUN apt-get install -y cmake
3+ RUN apt-get update && \
4+ apt-get install --no-install-recommends -y cmake=3.18.* && \
5+ apt-get clean && \
6+ rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ RUN go mod download
1010# Even though modules are downloaded, building them could take a while.
1111# Let's run go get on each module so that they're built ahead of time.
1212# Ref: https://github.com/montanaflynn/golang-docker-cache
13- RUN go mod graph | awk '{if ($1 !~ "@ ") print $2}' | xargs go get
13+ RUN ash -c "set -exo pipefail; go mod graph | awk '{if (\ $ 1 !~ \" @ \ " ) { print \ $ 2}} ' | xargs -r go get"
1414
1515ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"
16-
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ RUN go mod download
1010# Even though modules are downloaded, building them could take a while.
1111# Let's run go get on each module so that they're built ahead of time.
1212# Ref: https://github.com/montanaflynn/golang-docker-cache
13- RUN go mod graph | awk '{if ($1 !~ "@ ") print $2}' | xargs go get
13+ RUN ash -c "set -exo pipefail; go mod graph | awk '{if (\ $ 1 !~ \" @ \ " ) { print \ $ 2}} ' | xargs -r go get"
1414
1515ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"
16-
Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ RUN mkdir -p /app-cached
1212RUN mv /app/target /app-cached # Is this needed?
1313
1414# Pre-compile steps
15- RUN echo "cd \$ {CODECRAFTERS_SUBMISSION_DIR} && mvn -B package -Ddir=/tmp/codecrafters-sqlite-target && sed -i 's/^\( mvn .*\) /#\1 /' ./your_sqlite3.sh" > /codecrafters-precompile.sh
16- RUN chmod +x /codecrafters-precompile.sh
15+ RUN printf "cd \$ {CODECRAFTERS_SUBMISSION_DIR} && mvn -B package -Ddir=/tmp/codecrafters-sqlite-target && sed -i 's/^\( mvn .*\) /#\1 /' ./your_sqlite3.sh" > /codecrafters-precompile.sh
16+ RUN chmod +x /codecrafters-precompile.sh
Original file line number Diff line number Diff line change 11FROM python:3.11-alpine
22
3- RUN pip install pipenv
3+ RUN pip install --no-cache-dir " pipenv>=2023.12.1"
44
55COPY Pipfile /app/Pipfile
66COPY Pipfile.lock /app/Pipfile.lock
@@ -19,4 +19,4 @@ RUN pipenv --venv
1919RUN mkdir -p /app-cached
2020RUN mv /app/.venv /app-cached/.venv
2121
22- ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock"
22+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock"
Original file line number Diff line number Diff line change 11FROM jfloff/alpine-python:3.8
22
3- RUN pip install pipenv
3+ RUN pip install --no-cache-dir " pipenv>=2023.12.1"
44
55COPY Pipfile /app/Pipfile
66COPY Pipfile.lock /app/Pipfile.lock
@@ -19,4 +19,4 @@ RUN pipenv --venv
1919RUN mkdir -p /app-cached
2020RUN mv /app/.venv /app-cached/.venv
2121
22- ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock"
22+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ FROM alpine:3.18
44RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
55
66# Update the package list and install Zig
7- RUN apk update && apk add zig@testing=0.11.0-r3
7+ RUN apk add --no-cache zig@testing=0.11.0-r3
88
99RUN echo "cd \$ {CODECRAFTERS_SUBMISSION_DIR} && zig build-exe ./app/main.zig" > /codecrafters-precompile.sh
1010RUN chmod +x /codecrafters-precompile.sh
You can’t perform that action at this time.
0 commit comments