Compare commits
10 Commits
df7f1987f6
...
b94b1bff86
Author | SHA1 | Date | |
---|---|---|---|
b94b1bff86 | |||
5c4f2bf13e | |||
48eee903a5 | |||
d5bc0cd1d3 | |||
1c353d7c88 | |||
3e31ba21bd | |||
cdf02756d3 | |||
b2f9f5affa | |||
5b9bfeaa01 | |||
e3bef9b3e5 |
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
doc
|
26
Dockerfile
26
Dockerfile
@ -1,11 +1,25 @@
|
|||||||
FROM ubuntu
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y build-essential pip net-tools iputils-ping iproute2 curl
|
apt-get install -y build-essential pip net-tools iputils-ping iproute2 curl
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
RUN apt-get install -y nodejs
|
RUN apt-get install -y nodejs
|
||||||
RUN npm install -g watchify
|
|
||||||
|
|
||||||
EXPOSE 3000
|
COPY . /app/
|
||||||
EXPOSE 2000-2020
|
|
||||||
EXPOSE 10000-10100
|
RUN npm install
|
||||||
|
|
||||||
|
EXPOSE 3000/tcp
|
||||||
|
EXPOSE 2000-2200/udp
|
||||||
|
|
||||||
|
CMD node app.js
|
||||||
|
|
||||||
|
#docker build -t linx-video .
|
||||||
|
# docker run -it -d --restart always -p 3000:3000/tcp -p 2000-2200:2000-2200/udp linx-video
|
||||||
|
#Run under host network
|
||||||
|
# docker run -it -d --network host --restart always -p 3000:3000/tcp -p 2000-2200:2000-2200/udp linx-video
|
||||||
|
#https://docs.docker.com/config/containers/resource_constraints/
|
||||||
|
#docker run -it -d --network host --cpus="0.25" --memory="512m" --restart always -p 3000:3000/tcp -p 2000-2200:2000-2200/udp linx-video
|
Loading…
Reference in New Issue
Block a user