Skip to content

Commit

Permalink
Merge pull request #7914 from plumpy/container_builds
Browse files Browse the repository at this point in the history
chore(build): Update Dockerfiles for new cloudbuild configs
  • Loading branch information
plumpy authored Feb 25, 2020
2 parents f488ddf + 207c6a1 commit ccbdbee
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
13 changes: 5 additions & 8 deletions Dockerfile.compile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM gcr.io/spinnaker-marketplace/gradle_cache
MAINTAINER [email protected]

ENV GRADLE_USER_HOME /gradle_cache/.gradle
COPY . compiled_sources
WORKDIR compiled_sources

RUN ./gradlew build --no-daemon -PskipTests
FROM openjdk:8
MAINTAINER [email protected]
ENV GRADLE_USER_HOME /workspace/.gradle
ENV GRADLE_OPTS -Xmx2048m
CMD ./gradlew build --no-daemon -PskipTests
7 changes: 4 additions & 3 deletions Dockerfile.slim
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM debian:stable-slim
MAINTAINER [email protected]
COPY --from=compile /compiled_sources/build/webpack /opt/deck/html
COPY --from=compile /compiled_sources/docker /opt/deck/docker
MAINTAINER [email protected]

COPY build/webpack /opt/deck/html
COPY docker /opt/deck/docker
WORKDIR /opt/deck

RUN docker/setup-apache2.sh
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM ubuntu:bionic
MAINTAINER [email protected]
COPY --from=compile /compiled_sources/build/webpack /opt/deck/html
COPY --from=compile /compiled_sources/docker /opt/deck/docker
MAINTAINER [email protected]

COPY build/webpack /opt/deck/html
COPY docker /opt/deck/docker
WORKDIR /opt/deck

RUN docker/setup-apache2.sh
Expand Down

0 comments on commit ccbdbee

Please sign in to comment.