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
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Use Ubuntu as the base image
FROM ubuntu:latest AS build-stage

# Install build dependencies
RUN apt-get update && apt-get install -y \
# Install build dependencies. git isn't needed: only src/ is copied in, so
# the version comes from the VERSION build arg instead of git describe.
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
git \
g++ \
bash \
make
libc6-dev \
make \
&& rm -rf /var/lib/apt/lists/*

ARG VERSION
WORKDIR /build
COPY src /build
RUN make pactester
RUN make pactester VERSION=$VERSION

# Final stage
FROM ubuntu:latest
Expand Down
Loading