-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (28 loc) · 724 Bytes
/
Dockerfile
File metadata and controls
34 lines (28 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Use Ubuntu as the base image
FROM ubuntu:latest AS build-stage
# Install build dependencies
RUN apt-get update && apt-get install -y \
gcc \
git \
g++ \
bash \
make
WORKDIR /build
COPY src /build
RUN make pactester
# Final stage
FROM ubuntu:latest
WORKDIR /app
COPY --from=build-stage /build/pactester /app/
# Metadata params
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
# Metadata
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Pactester" \
org.label-schema.vcs-url="https://github.com/manugarg/pacparser" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.version=$VERSION \
com.microscaling.license="Apache-2.0"
ENTRYPOINT ["/app/pactester"]