smart-on-fhir/synthea

Outdated dockerfile

Opened this issue · 0 comments

The current dockerfile is not working anymore, I guess outdated libraries. Managed to make things up and running with:

FROM java:8

RUN echo "deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
RUN apt-get -y -o Acquire::Check-Valid-Until=false update

RUN apt-get -y install git-core curl build-essential openssl libssl-dev \
 && git clone https://github.com/nodejs/node.git \
 && cd node \
 && ./configure \
 && make \
 && make install

RUN apt-get -y -q install nodejs

COPY ./synthea /synthea

RUN mkdir /app
RUN mkdir /synthea/output

WORKDIR /synthea

EXPOSE 80

# Install the server
COPY package.json      /app/package.json
COPY package-lock.json /app/package-lock.json
COPY index.js          /app/index.js
RUN cd /app && npm i

# Force it to download gradle and other dependencies
# NOTE: This turns the resulting image into a snapshot of whatever the
# dependencies have resolved to at build time!
RUN /synthea/run_synthea
RUN rm -rf /synthea/output/*

CMD ["node", "/app/index.js"]