-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathDockerfile
68 lines (59 loc) · 1.43 KB
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM ruby:2.5-alpine as build
COPY . /build
WORKDIR /build
RUN set +xe \
&& apk add --no-cache --virtual .ruby-builddeps \
autoconf \
bison \
bzip2 \
bzip2-dev \
ca-certificates \
coreutils \
dpkg-dev dpkg \
gcc \
g++ \
gdbm-dev \
glib-dev \
libc-dev \
libffi-dev \
libressl \
libressl-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
make \
ncurses-dev \
procps \
readline-dev \
ruby \
tar \
xz \
yaml-dev \
zlib-dev \
&& gem build cucumber-rest-bdd.gemspec \
&& gem install cucumber-rest-bdd-*.gem \
&& apk del .ruby-builddeps
FROM ruby:2.5-alpine as app
COPY --from=build /usr/local/bundle /usr/local/bundle
WORKDIR /app
ENV field_separator=_ \
field_camel=false \
resource_single=false \
cucumber_api_verbose=false \
data_key= \
error_key=error \
set_parent_id=false
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.vendor="graze" \
org.label-schema.name="cucumber-rest-bdd" \
org.label-schema.description="behavioural testing for REST apis" \
org.label-schema.vcs-url="https://github.com/graze/cucumber-rest-bdd" \
org.label-schema.version="0.6.1" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.build-date=$BUILD_DATE \
maintainer="[email protected]" \
version="0.6.1" \
license="MIT"
ENTRYPOINT ["cucumber"]