matrix-puppeteer-line/puppet/Dockerfile
2021-02-26 14:19:48 -05:00

18 lines
641 B
Docker

FROM node:14-alpine3.12
RUN echo $'\
@edge http://dl-cdn.alpinelinux.org/alpine/edge/main\n\
@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing\n\
@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories
RUN apk add --no-cache chromium@edge
WORKDIR /opt/matrix-appservice-line/puppet
RUN chown node:node /opt/matrix-appservice-line/puppet
USER node
COPY package.json yarn.lock ./
RUN yarn --production && rm -rf node_modules/puppeteer/.local-chromium
COPY . /opt/matrix-appservice-line/puppet
CMD ["yarn", "start", "--config", "/data/config.json", "--browser", "/usr/lib/chromium/chrome", "--no-sandbox"]