Skip to content
Merged
Show file tree
Hide file tree
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
28 changes: 17 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
FROM node:18.9.1-bullseye-slim
# Use the latest LTS version of Node.js
FROM node:20-bullseye-slim

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates=20210119 \
git=1:2.30.2-1 \
jq=1.6-2.1 \
libncurses5=6.2+20201114-2 \
&& apt-get purge --auto-remove -y \
&& apt-get clean \
# Update package lists and install required dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
git \
jq \
libncurses5 \
&& rm -rf /var/lib/apt/lists/*

# Pre-compile exercise dependencies
# Set up working directory
WORKDIR /opt/test-runner/pre-compiled

# Copy and install dependencies
COPY pre-compiled .
RUN npm install && npx spago install && npx spago build --deps-only

# Setup bin directory
# Set up bin directory
WORKDIR /opt/test-runner/bin
COPY bin/run.sh bin/run-tests.sh ./

# Ensure scripts have execution permissions
RUN chmod +x /opt/test-runner/bin/*.sh

# Set the entry point
ENTRYPOINT ["/opt/test-runner/bin/run.sh"]
Loading