summary refs log tree commit diff
path: root/Dockerfile
blob: fc27a06cb112e30b2418bff557328bd169b2c03e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM node:slim

LABEL maintainer="https://github.com/pluralcafe/barkeep" \
      description="Ambassador bot forked from mbilokonsky/ambassador"

ENV UID=992
ENV GID=992

WORKDIR /barkeep

RUN addgroup --gid ${GID} barkeep \
 && adduser --home /barkeep --shell /bin/sh --disabled-login --ingroup barkeep --uid ${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"]