-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
37 lines (28 loc) · 859 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
33
34
35
36
37
FROM node:20
WORKDIR /streamer
# rm -rf /streamer/* &&\
# RUN ls -alsR /streamer
COPY ./.editor* /streamer/
COPY ./.eslint* /streamer/
COPY ./.npm* /streamer/
COPY ./.gitignore* /streamer/
COPY ./.prettier* /streamer/
COPY ./.slugignore* /streamer/
COPY ./package* /streamer/
COPY ./tsconfig* /streamer/
ADD ./LCP /streamer/LCP
ADD ./.git /streamer/.git
ADD ./misc /streamer/misc
ADD ./src /streamer/src
ADD ./tools /streamer/tools
ADD ./tsconfigs /streamer/tsconfigs
# RUN ls -alsR /streamer
RUN arch &&\
uname &&\
npm install -g [email protected] &&\
node --version &&\
npm --version
RUN cd /streamer/ &&\
npm ci && npm run build
EXPOSE 3000
CMD ./node_modules/cross-env/src/bin/cross-env-shell.js "DEBUG=r2:* NODE_ENV=development STREAMER_WATCH=0 STREAMER_DISABLE_EXPIRY=1" node "./dist/es8-es2017/src/http/server-cli.js" ./misc/epubs/