2020-05-26 16:04:50 +00:00
|
|
|
FROM node:lts-alpine
|
2018-03-01 21:03:47 +00:00
|
|
|
|
2020-05-28 15:05:12 +00:00
|
|
|
LABEL name "lolisafe-bobbywibowo"
|
2018-03-01 21:03:47 +00:00
|
|
|
LABEL version "3.0.0"
|
2020-05-28 15:05:12 +00:00
|
|
|
LABEL maintainer "evanmn <docker@evan.mn>"
|
2018-03-01 21:03:47 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/src/lolisafe
|
|
|
|
|
|
|
|
COPY package.json yarn.lock ./
|
|
|
|
|
2020-05-26 16:24:27 +00:00
|
|
|
RUN apk add --no-cache --virtual build-dependencies python make g++ && apk add --no-cache ffmpeg
|
2020-05-26 16:04:50 +00:00
|
|
|
|
2020-05-26 16:05:29 +00:00
|
|
|
ADD config.sample.js config.js
|
|
|
|
|
2020-05-26 16:04:50 +00:00
|
|
|
RUN yarn install
|
|
|
|
|
|
|
|
RUN apk update
|
2018-03-01 21:03:47 +00:00
|
|
|
|
2020-05-26 16:04:50 +00:00
|
|
|
RUN apk del build-dependencies
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 9999
|
2018-03-01 21:03:47 +00:00
|
|
|
CMD ["node", "lolisafe.js"]
|