Created
November 26, 2020 10:24
-
-
Save thapakazi/4986189429eafbc4cc97208fb7977e25 to your computer and use it in GitHub Desktop.
hubot dockerfile
This file contains hidden or 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:alpine | |
RUN apk add --no-cache --update python make g++ && \ | |
rm -rf /var/cache/apk/* | |
ENV HUBOT_USER hubot | |
ENV HUBOT_GROUP hubot | |
ENV HUBOT_HOME /hubot | |
RUN addgroup -g 501 $HUBOT_GROUP && \ | |
adduser -D -h $HUBOT_HOME -u 501 -G $HUBOT_GROUP $HUBOT_USER | |
ENV HOME $HUBOT_HOME | |
WORKDIR $HUBOT_HOME | |
USER hubot | |
# ENV HUBOT_NAME kubeguys | |
ENV EXPRESS_PORT 8000 | |
EXPOSE 8000 | |
COPY --chown=$HUBOT_USER:$HUBOT_GROUP package.json package-lock.json ./ | |
RUN npm install --production | |
COPY --chown=$HUBOT_USER:$HUBOT_GROUP . ./ | |
ENTRYPOINT ["npx","hubot"] | |
CMD ["-a","slack"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment