Skip to content

Commit

Permalink
Use adopopenjdk rather than vertx base image
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Jul 27, 2020
1 parent 09f863c commit 0b6294f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# By default, building this dockerfile will use
# the IMAGE argument below for the runtime image:

ARG IMAGE=vertx/vertx3
ARG IMAGE=adoptopenjdk/openjdk11:jre-11.0.7_10-alpine

# To install the built distribution into other runtimes
# pass a build argument, e.g.:
Expand Down Expand Up @@ -36,17 +36,17 @@ RUN gradle installDist
# clean container to minimize size.
#
FROM ${IMAGE}
COPY --from=gradle /home/gradle/ms/build/install/ms /usr/verticles/ms
COPY --from=gradle /home/gradle/ms/build/install/ms /opt/ms

EXPOSE 8080
ENV JAVA_OPTS "-Xmx1G"

WORKDIR /usr/verticles/ms
WORKDIR /opt/ms


ARG OMERO_SERVER=omero
ARG REDIS_SERVER=redis
RUN sed -i "s/127.0.0.1:6379/$REDIS_SERVER:6379/" conf/config.yaml
RUN sed -i "s/localhost/$OMERO_SERVER/" conf/config.yaml

ENTRYPOINT ["bash", "bin/ms"]
ENTRYPOINT ["sh", "bin/ms"]

0 comments on commit 0b6294f

Please sign in to comment.