Create Dockerfile

add docker file for linux.
This commit is contained in:
eatfishfish 2024-10-23 18:12:56 +08:00 committed by GitHub
parent 827da74881
commit 26f217f8a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -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"]