diff --git a/Dockerfile b/Dockerfile index 717d973..b00aaea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,16 +34,6 @@ COPY templates/ templates/ COPY static/ static/ COPY tests/ tests/ -# Ensure /tmp, /app/h2-data, /app/static/uploads, and /app/logs are writable -RUN mkdir -p /tmp /app/h2-data /app/static/uploads /app/logs && chmod 777 /tmp /app/h2-data /app/static/uploads /app/logs - -# Copy pre-built HAPI WAR and configuration -COPY hapi-fhir-jpaserver/target/ROOT.war /usr/local/tomcat/webapps/ -COPY hapi-fhir-jpaserver/target/classes/application.yaml /usr/local/tomcat/conf/ -COPY hapi-fhir-jpaserver/target/classes/application.yaml /app/config/application.yaml -COPY hapi-fhir-jpaserver/target/classes/application.yaml /usr/local/tomcat/webapps/app/config/application.yaml -COPY hapi-fhir-jpaserver/custom/ /usr/local/tomcat/webapps/custom/ - # Install supervisord RUN pip install supervisor diff --git a/Dockerfile.full b/Dockerfile.full new file mode 100644 index 0000000..ef3c0bc --- /dev/null +++ b/Dockerfile.full @@ -0,0 +1,11 @@ +FROM flare.lite + +# Ensure /tmp, /app/static/uploads, and /app/logs are writable +RUN mkdir -p /tmp /app/h2-data /app/static/uploads /app/logs && chmod 777 /tmp /app/h2-data /app/static/uploads /app/logs + +# Copy pre-built HAPI WAR and configuration +COPY hapi-fhir-jpaserver/target/ROOT.war /usr/local/tomcat/webapps/ +COPY hapi-fhir-jpaserver/target/classes/application.yaml /usr/local/tomcat/conf/ +COPY hapi-fhir-jpaserver/target/classes/application.yaml /app/config/application.yaml +COPY hapi-fhir-jpaserver/target/classes/application.yaml /usr/local/tomcat/webapps/app/config/application.yaml +COPY hapi-fhir-jpaserver/custom/ /usr/local/tomcat/webapps/custom/ \ No newline at end of file