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-08-21 15:35:16 +00:00
|
|
|
RUN apk --no-cache update \
|
|
|
|
&& apk add --no-cache --virtual build-dependencies python make g++ \
|
|
|
|
&& apk add --no-cache ffmpeg \
|
|
|
|
&& apk del build-dependencies \
|
|
|
|
&& yarn install --production \
|
|
|
|
&& yarn cache clean
|
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
|
|
|
COPY . .
|
2020-08-21 15:35:16 +00:00
|
|
|
|
2020-05-26 16:04:50 +00:00
|
|
|
EXPOSE 9999
|
2020-08-21 15:35:16 +00:00
|
|
|
|
2018-03-01 21:03:47 +00:00
|
|
|
CMD ["node", "lolisafe.js"]
|