summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorreverite <samantha@chalker.io>2018-04-08 21:22:03 -0700
committerreverite <samantha@chalker.io>2018-04-08 21:22:03 -0700
commitbe40bb9df2a06d6a1427dc4d33b2afee3be7253a (patch)
tree314b754d9dd868329fcfabc6db9b1904a0441cab /Dockerfile
parent31fc92ea2ea52deb7b3d6b4e94f7b41918f8417a (diff)
Add Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..2e1c1ca
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,29 @@
+FROM node:alpine
+
+LABEL maintainer="https://github.com/pluralcafe/barkeep" \
+      description="Ambassador bot forked from mbilokonsky/ambassador"
+
+ENV UID=992
+ENV GID=992
+
+WORKDIR /barkeep
+
+RUN apk -U upgrade \
+ && apk add -t build-dependencies \
+               build-base \
+               postgresql-dev \
+ && apk add tini \
+ && update-ca-certificates \
+ && rm -rf /tmp/* /var/cache/apk/* \
+ && addgroup -g ${GID} barkeep \
+ && adduser -h /barkeep -s /bin/sh -D -G barkeep -u ${UID} barkeep
+
+COPY package.json index.js yarn.lock /barkeep/
+
+RUN yarn install \
+ && chown -R barkeep:barkeep /barkeep
+
+USER barkeep
+
+ENTRYPOINT ["/sbin/tini", "--"]
+CMD ["yarn", "start"]