mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
fix docker
This commit is contained in:
parent
c4f576a061
commit
cbed540ff2
18
Dockerfile
18
Dockerfile
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user