Skip to content

Instantly share code, notes, and snippets.

@kashitan

kashitan/Dockerfile

Created Aug 10, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.