Skip to content

Commit 5816c4b

Browse files
authored
Merge pull request #408 from nginx-proxy/license-in-image
Include license in Docker images
2 parents 781ee5e + 0ac48ce commit 5816c4b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
docker-gen
44
dist
55
examples
6-
LICENSE
76
Makefile
87
README.md
98
templates

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ RUN apk add --no-cache --virtual .bin-deps openssl
2222
# Install docker-gen from build stage
2323
COPY --from=go-builder /build/docker-gen /usr/local/bin/docker-gen
2424

25+
# Copy the license
26+
COPY LICENSE /usr/local/share/doc/docker-gen/
27+
2528
ENTRYPOINT ["/usr/local/bin/docker-gen"]

Dockerfile.debian

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ RUN apt-get update \
2525
# Install docker-gen from build stage
2626
COPY --from=go-builder /build/docker-gen /usr/local/bin/docker-gen
2727

28+
# Copy the license
29+
COPY LICENSE /usr/local/share/doc/docker-gen/
30+
2831
ENTRYPOINT ["/usr/local/bin/docker-gen"]

0 commit comments

Comments
 (0)