Skip to content

Commit

Permalink
fix linux docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
costateixeira committed Dec 10, 2023
1 parent 3ed41e1 commit 8986ce1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:22.04 as builder
ENV DEBIAN_FRONTEND=noninteractive


RUN apt update && apt install -y wget git unixodbc-dev libgtk2.0-dev xvfb sqlite3 libsqlite3-dev build-essential
RUN apt update && apt install -y tzdata wget git unixodbc-dev libgtk2.0-dev xvfb sqlite3 libsqlite3-dev build-essential

# Download and build OpenSSL 1.1.1w
WORKDIR /tmp
Expand All @@ -15,6 +15,11 @@ RUN wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz \
&& make test \
&& make install

RUN ls -la /usr/local/lib/

# Set the timezone
RUN echo "UTC" > /etc/timezone

RUN apt update && apt install -y wget git unixodbc-dev libgtk2.0-dev xvfb sqlite3 libsqlite3-dev && \
cd /tmp && \
wget https://dev.mysql.com/get/Downloads/Connector-ODBC/8.0/mysql-connector-odbc-8.0.26-linux-glibc2.12-x86-64bit.tar.gz && \
Expand All @@ -33,7 +38,7 @@ WORKDIR /work/fhirserver
COPY . /work/fhirserver

RUN /work/bootstrap/linux-libraries.sh /work/bootstrap
RUN cp exec/pack/linux/*.so /usr/lib/
RUN cp /usr/local/lib/*.so* /usr/lib/
RUN /work/fhirserver/build/linux-fhirserver.sh /work/bootstrap
RUN cp exec/pack/*.properties exec/64

Expand All @@ -42,6 +47,8 @@ ENV PORT 80
ENV TERMINOLOGY_CACHE /terminology
VOLUME /terminology

ENV DEBIAN_FRONTEND=

RUN printf '#!/bin/bash \n\
Xvfb :99 -screen 0 1024x768x8 -nolisten tcp & \n\
echo "[web]" > /work/fhirserver/exec/64/web.ini; \n\
Expand Down
1 change: 0 additions & 1 deletion toolkit2/fhirtoolkit.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@
<CompilerMessages>
<IgnoredMessages idx5024="True"/>
</CompilerMessages>
<Compiler>-O2 -Xs</Compiler>
</Other>
</CompilerOptions>
</Item>
Expand Down

0 comments on commit 8986ce1

Please sign in to comment.