-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dockerfile): various Dockerfile cleanups (#833)
* chore(dockerfile): delete the (unused) java8 dockerfiles * chore(dockerfile): replace deprecated MAINTAINER with LABEL * chore(dockerfile): use gid/uid 10111 for the spinnaker user * chore(dockerfile): make docker builds more cacheable
- Loading branch information
Showing
5 changed files
with
8 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
FROM alpine:3.11 | ||
MAINTAINER sig-platform@spinnaker.io | ||
COPY igor-web/build/install/igor /opt/igor | ||
LABEL maintainer="sig-platform@spinnaker.io" | ||
RUN apk --no-cache add --update bash openjdk11-jre | ||
RUN adduser -D -S spinnaker | ||
RUN addgroup -S -g 10111 spinnaker | ||
RUN adduser -S -G spinnaker -u 10111 spinnaker | ||
COPY igor-web/build/install/igor /opt/igor | ||
RUN mkdir -p /opt/igor/plugins && chown -R spinnaker:nogroup /opt/igor/plugins | ||
USER spinnaker | ||
CMD ["/opt/igor/bin/igor"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM ubuntu:bionic | ||
MAINTAINER sig-platform@spinnaker.io | ||
COPY igor-web/build/install/igor /opt/igor | ||
LABEL maintainer="sig-platform@spinnaker.io" | ||
RUN apt-get update && apt-get -y install openjdk-11-jre-headless wget | ||
RUN adduser --disabled-login --system spinnaker | ||
RUN adduser --system --uid 10111 --group spinnaker | ||
COPY igor-web/build/install/igor /opt/igor | ||
RUN mkdir -p /opt/igor/plugins && chown -R spinnaker:nogroup /opt/igor/plugins | ||
USER spinnaker | ||
CMD ["/opt/igor/bin/igor"] |
This file was deleted.
Oops, something went wrong.