Skip to content

Instantly share code, notes, and snippets.

@kashitan
Created August 10, 2020 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kashitan/d753fcab3516873504e58c28a0d93f98 to your computer and use it in GitHub Desktop.
Save kashitan/d753fcab3516873504e58c28a0d93f98 to your computer and use it in GitHub Desktop.
IMI 住所変換コンポーネント Herokuデプロイ用Dockerfile
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