-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
32 lines (22 loc) · 811 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM node:16.16.0-alpine3.16
#
# Yuebing Dockerfile
#
# GitHub: https://github.com/cobbzilla/yuebing
# npm: https://www.npmjs.com/package/yuebing
# DockerHub: https://hub.docker.com/repository/docker/cobbzilla/yuebing
#
RUN mkdir -p /usr/src/yuebing
RUN mkdir -p /usr/src/scratch
WORKDIR /usr/src/yuebing
RUN apk update && apk upgrade && \
apk add --no-cache curl redis ffmpeg mediainfo
COPY . /usr/src/yuebing/
# Install dependencies required to build @ronomon/crypto-async
RUN apk add --no-cache make g++ python3 linux-headers libressl-dev musl-dev libffi-dev
RUN yarn install --network-timeout 180000
# Remove build dependencies for @ronomon/crypto-async
RUN apk del make g++ python3 linux-headers libressl-dev musl-dev libffi-dev
RUN yarn build
EXPOSE 3000
CMD [ "./scripts/docker_start.sh" ]