fix docker

This commit is contained in:
Evan McCarthy 2020-05-26 11:04:50 -05:00 committed by Bobby Wibowo
parent c4f576a061
commit cbed540ff2
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -1,4 +1,4 @@
FROM node:9
FROM node:lts-alpine
LABEL name "lolisafe"
LABEL version "3.0.0"
@ -8,12 +8,16 @@ WORKDIR /usr/src/lolisafe
COPY package.json yarn.lock ./
RUN sh -c 'echo "deb http://www.deb-multimedia.org jessie main" >> /etc/apt/sources.list' \
&& apt-key adv --keyserver keyring.debian.org --recv-keys 5C808C2B65558117 \
&& apt-get update \
&& apt-get install -y ffmpeg graphicsmagick \
&& yarn install
RUN apk add --no-cache --virtual build-dependencies python make g++
RUN apk add --no-cache ffmpeg
RUN yarn install
RUN apk update
RUN apk del build-dependencies
COPY . .
EXPOSE 9999
CMD ["node", "lolisafe.js"]