ssloy-tinyraycaster
SUCCESS
4m 23s
History Source
SummaryIterations1Transcript5Dockerfile
01Iteration 1
WRITEWriteFile· step #1
0s
Dockerfile1026 bytes written
text42 lines · 1026 chars
# Build from source using a two-stage Docker build for tinyraycaster

# Stage 1: builder with dev tools to compile the project
FROM debian:oldstable-slim AS builder

ENV DEBIAN_FRONTEND=noninteractive

# Install build dependencies (CMake + SDL2 and common dev tools)
RUN apt-get update \
  && apt-get install -y --no-install-recommends \
     build-essential \
     cmake \
     libsdl2-dev \
     netpbm \
  && rm -rf /var/lib/apt/lists/*

WORKDIR /src

# Copy source and build
COPY . .
RUN mkdir -p build && cd build && cmake .. && make -j$(nproc)

# Stage 2: runtime image
FROM debian:oldstable-slim

ENV DEBIAN_FRONTEND=noninteractive

# Install runtime dependencies (SDL2 runtime, etc.)
RUN apt-get update \
  && apt-get install -y --no-install-recommends \
     libsdl2-2.0-0 \
     netpbm \
  && rm -rf /var/lib/apt/lists/*

# Copy the built binary from the builder
COPY --from=builder /src/build/tinyraycaster /tinyraycaster

WORKDIR /

# Run the application (requires a display server for SDL)
CMD ["/tinyraycaster"]
WRITEWriteFile· step #2
0s
.dockerignore92 bytes written
dockerignore10 lines · 92 chars
# Ignore git and build artifacts
.git
build
Dockerfile
.dockerignore
*.o
*.a
*.so
**/build/
VERIFYVerifyBuild· step #3
1m 37s
VerifyBuildsmoke_failed
Smoke [PASS]: test -x /tinyraycaster
Smoke [PASS]: ldd /tinyraycaster | grep -q libSDL2
Smoke [FAIL]: file /tinyraycaster | grep -q 'executable
  Output: sh: 1: Syntax error: Unterminated quoted string
WRITEWriteFile· step #4
1s
Dockerfile1038 bytes written
text43 lines · 1038 chars
# Build from source using a two-stage Docker build for tinyraycaster

# Stage 1: builder with dev tools to compile the project
FROM debian:oldstable-slim AS builder

ENV DEBIAN_FRONTEND=noninteractive

# Install build dependencies (CMake + SDL2 and common dev tools)
RUN apt-get update \
  && apt-get install -y --no-install-recommends \
     build-essential \
     cmake \
     libsdl2-dev \
     netpbm \
  && rm -rf /var/lib/apt/lists/*

WORKDIR /src

# Copy source and build
COPY . .
RUN mkdir -p build && cd build && cmake .. && make -j$(nproc)

# Stage 2: runtime image
FROM debian:oldstable-slim

ENV DEBIAN_FRONTEND=noninteractive

# Install runtime dependencies (SDL2 runtime, etc.)
RUN apt-get update \
  && apt-get install -y --no-install-recommends \
     libsdl2-2.0-0 \
     netpbm \
     file \
  && rm -rf /var/lib/apt/lists/*

# Copy the built binary from the builder
COPY --from=builder /src/build/tinyraycaster /tinyraycaster

WORKDIR /

# Run the application (requires a display server for SDL)
CMD ["/tinyraycaster"]
VERIFYVerifyBuild· step #5
39s
VerifyBuildaccepted
Smoke [PASS]: test -x /tinyraycaster
Smoke [PASS]: ldd /tinyraycaster | head -n 20
Smoke [PASS]: file /tinyraycaster