2020-08-24 11:10:16 -04:00
|
|
|
FROM node:14-alpine3.12
|
2020-08-24 08:23:10 -04:00
|
|
|
|
2020-08-24 11:10:16 -04:00
|
|
|
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
|
2020-08-24 11:53:56 -04:00
|
|
|
|
2021-02-10 02:34:19 -05:00
|
|
|
WORKDIR /opt/mautrix-line/puppet
|
|
|
|
RUN chown node:node /opt/mautrix-line/puppet
|
2020-08-24 11:53:56 -04:00
|
|
|
USER node
|
2020-08-24 08:23:10 -04:00
|
|
|
COPY package.json yarn.lock ./
|
2020-08-24 11:10:16 -04:00
|
|
|
RUN yarn --production && rm -rf node_modules/puppeteer/.local-chromium
|
2020-08-24 08:23:10 -04:00
|
|
|
|
2021-02-10 02:34:19 -05:00
|
|
|
COPY . /opt/mautrix-line/puppet
|
2020-08-24 16:28:46 -04:00
|
|
|
CMD ["yarn", "start", "--config", "/data/config.json", "--browser", "/usr/lib/chromium/chrome", "--no-sandbox"]
|