add leaf to docker-compose
This commit is contained in:
@@ -7,3 +7,12 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
udp2ws:
|
||||||
|
image: git.danilkolesnikov.ru/danilko09/udp_over_ws:leaf
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: leaf.Dockerfile
|
||||||
|
ports:
|
||||||
|
- 5005:5005/udp
|
||||||
|
restart: always
|
||||||
|
|||||||
9
leaf.Dockerfile
Normal file
9
leaf.Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM python:3.8-slim
|
||||||
|
|
||||||
|
EXPOSE 5005
|
||||||
|
WORKDIR /app
|
||||||
|
RUN pip install --no-cache-dir websockets
|
||||||
|
|
||||||
|
COPY leaf.py /app/
|
||||||
|
STOPSIGNAL SIGINT
|
||||||
|
ENTRYPOINT ["python", "-u", "leaf.py"]
|
||||||
Reference in New Issue
Block a user