Skip to content

Commit

Permalink
BAH-2436 | Use amazoncorretto as base image (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: Divij Goyal <divij.g@beehyv.com>
  • Loading branch information
mohan-13 and goyaldivij authored Oct 12, 2022
1 parent fc78872 commit 27e03c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package/docker/openelis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:8-alpine
FROM amazoncorretto:8

ENV SERVER_PORT=8052
ENV BASE_DIR=/var/run/bahmni-lab
Expand All @@ -15,6 +15,7 @@ RUN mkdir -p ${WAR_DIRECTORY}
RUN mkdir -p /opt/bahmni-lab/migrations/db_backup/
RUN mkdir -p /opt/bahmni-lab/migrations/liquibase/
RUN mkdir -p /opt/bahmni-lab/migrations/scripts/
RUN yum install -y unzip

ADD https://repo.mybahmni.org/packages/build/bahmni-embedded-tomcat-8.0.42.jar /opt/bahmni-lab/lib/bahmni-lab.jar
COPY openelis/dist/openelis.war /etc/bahmni-lab/openelis.war
Expand All @@ -25,7 +26,7 @@ RUN cp -r /tmp/artifacts/default_config/openelis/. /etc/bahmni_config/openelis/
RUN cd ${WAR_DIRECTORY} && jar xvf /etc/bahmni-lab/openelis.war

# Used by envsubst command for replacing environment values at runtime
RUN apk add gettext
RUN yum install -y gettext

COPY package/docker/openelis/templates/hibernate.cfg.xml.template /etc/bahmni-lab/
COPY package/docker/openelis/templates/atomfeed.properties.template /etc/bahmni-lab/
Expand Down

0 comments on commit 27e03c8

Please sign in to comment.