-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
43 lines (34 loc) · 1.17 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
FROM node:14.19.3-buster-slim as builder
ARG BUNDLE=meteor-recorder.tar.gz
COPY $BUNDLE meteor-bundle.tar.gz
RUN tar -xzvf meteor-bundle.tar.gz \
&& apt-get update \
&& apt-get install -y python3 make g++ \
&& rm meteor-bundle.tar.gz \
&& (cd bundle/programs/server && npm install)
FROM node:14.19.3-buster-slim
ARG TITLE="meteor-recorder"
ARG LICENSES="MIT"
ARG SOURCE="https://github.com/boonya/meteor-recorder"
ARG AUTHORS="Serhii [boonya] Buinytskyi <[email protected]>"
ARG DESCRIPTION
ARG VERSION
ARG REVISION
ARG CREATED
LABEL org.opencontainers.image.base.name "node:14.19.3-buster-slim"
LABEL org.opencontainers.image.title $TITLE
LABEL org.opencontainers.image.licenses $LICENSES
LABEL org.opencontainers.image.source $SOURCE
LABEL org.opencontainers.image.authors $AUTHORS
LABEL org.opencontainers.image.description $DESCRIPTION
LABEL org.opencontainers.image.version $VERSION
LABEL org.opencontainers.image.revision $REVISION
LABEL org.opencontainers.image.created $CREATED
ENV RECORDER_FOLDER="/mnt" \
ROOT_URL="http://localhost:3000" \
PORT=3000
RUN apt-get update \
&& apt-get install -y ffmpeg
WORKDIR /usr/src/app
COPY --from=builder bundle .
CMD ["node", "main.js"]