Created
August 10, 2020 06:39
Star
You must be signed in to star a gist
IMI 住所変換コンポーネント Herokuデプロイ用Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:14-alpine | |
ENV VERSON=2.0.0 | |
ENV COMPONENT=imi-enrichment-address | |
WORKDIR /usr/local/${COMPONENT} | |
RUN apk --no-cache --virtual .build-deps add curl \ | |
&& curl -o imi-enrichment-address-${VERSON}.tgz \ | |
https://info.gbiz.go.jp/tools/imi_tools/resource/${COMPONENT}/${COMPONENT}-${VERSON}.tgz \ | |
&& npm i ${COMPONENT}-${VERSON}.tgz \ | |
&& rm -rf ${COMPONENT}-${VERSON}.tgz \ | |
&& apk del .build-deps | |
EXPOSE $PORT | |
CMD node /usr/local/${COMPONENT}/node_modules/${COMPONENT}/bin/server.js $PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment