From 26f217f8a193563350b9a5b13b1c5606f6f199fb Mon Sep 17 00:00:00 2001 From: eatfishfish <124665442+eatfishfish@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:12:56 +0800 Subject: [PATCH] Create Dockerfile add docker file for linux. --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..893d1b5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:22.04 +ENV DEBIAN_FRONTEND=noninteractive +ENV LANG C.UTF-8 +RUN sed -i 's@http://archive.ubuntu.com/ubuntu/@http://mirrors.aliyun.com/ubuntu/@g' /etc/apt/sources.list + +RUN apt-get update -q \ + && apt-get install -y git + +RUN mkdir -p /root/openpilot +WORKDIR /root/openpilot + +RUN git clone -b main --depth=1 https://github.com/eatfishfish/openpilot-server.git +WORKDIR /root/openpilot/openpilot-server + +# replace config with your domain +RUN sed -i 's@laolang.duckdns.org@your_domain@g' /root/openpilot/openpilot-server/config.txt + +ENTRYPOINT ["/root/openpilot/openpilot-server/opserver_linux_amd64"]