FROM ubuntu:20.04

RUN apt update && apt install -y curl language-pack-ja fonts-noto-cjk fontconfig unzip
ENV TZ=Asia/Tokyo LANG=ja_JP.UTF-8 LANGUAGE=ja_JP:ja
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt update && apt install -y nodejs && npm install nodemon -g
RUN curl -L http://codh.rois.ac.jp/software/soan/download/soan-webapi.tgz | tar xvzf -
WORKDIR soan-webapi
RUN npm install

EXPOSE 8080
CMD nodemon index.js
