Skip to content

Commit 0bf1734

Browse files
committed
add Dockerfile, run UI in container
1 parent 62d9d60 commit 0bf1734

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# docker run -it -p 15151:15151 -v /var/snap/lxd/common/lxd/unix.socket:/var/snap/lxd/common/lxd/unix.socket lxdui
2+
3+
FROM ubuntu
4+
5+
RUN apt update && apt install -y python3
6+
7+
ADD . /app
8+
WORKDIR /app
9+
10+
RUN apt install -y python3-pip
11+
RUN pip3 install setuptools
12+
RUN python3 setup.py install
13+
14+
ENV LC_ALL=C.UTF-8
15+
ENV LANG=C.UTF-8
16+
EXPOSE 15151
17+
18+
ENTRYPOINT ["python3", "run.py", "start"]

0 commit comments

Comments
 (0)