Created
April 17, 2016 07:59
-
-
Save yamamoto-febc/5b8746d9ec1e5b239ee284b5c6ed97b5 to your computer and use it in GitHub Desktop.
さくらのクラウド + slackボット用のDockerfile(あらかじめenv/setting.jsonを作成しておくこと)
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:latest | |
RUN mkdir /bot && cd /bot | |
WORKDIR /bot | |
COPY ./sacloud-bot /bot | |
RUN npm install | |
ENTRYPOINT ["node","bot.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Slack上からさくらのクラウドを操作できるbotをつくったを動かすためのDockerfileサンプルです。
sacloud-bot
ディレクトリにソースをクローンしておきます。sacloud-bot
ディレクトリと同じ階層にgistの内容でDockerfile
を作成します。docker build -t sacloud-bot .