mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add dockerfile
This commit is contained in:
parent
d4374e28f2
commit
5824c0ed8b
@ -1,9 +1,6 @@
|
||||
FROM ubuntu:20.04
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install wget -y
|
||||
|
||||
RUN wget -O /etc/apt/sources.list http://mirrors.cloud.tencent.com/repo/ubuntu20_sources.list
|
||||
ADD ubuntu20_sources.list /etc/apt/sources.list
|
||||
|
||||
RUN echo 'Asia/Shanghai' >/etc/timezone
|
||||
|
||||
@ -40,3 +37,5 @@ ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
|
||||
|
||||
RUN apt-get install -y python3
|
||||
RUN git config --global --add safe.directory /usr/src/pikascript
|
||||
|
||||
|
@ -1,13 +1,5 @@
|
||||
DOCKER_NAME=pikadev
|
||||
|
||||
docker rm $DOCKER_NAME -f
|
||||
docker rmi $DOCKER_NAME
|
||||
|
||||
docker build -t $DOCKER_NAME .
|
||||
docker run -it --name $DOCKER_NAME \
|
||||
--restart=always \
|
||||
-v $PWD/..:/usr/src/pikascript \
|
||||
-w /usr/src/pikascript/port/linux \
|
||||
$DOCKER_NAME \
|
||||
bash
|
||||
# sh pull-core.sh && sh init.sh && sh gtest.sh && sh run.sh && bash
|
||||
|
9
docker/run.sh
Normal file
9
docker/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
DOCKER_NAME=pikadev
|
||||
|
||||
docker rm $DOCKER_NAME -f
|
||||
docker run -it --name $DOCKER_NAME \
|
||||
--restart=always \
|
||||
-v $PWD/..:/usr/src/pikascript \
|
||||
-w /usr/src/pikascript/port/linux \
|
||||
$DOCKER_NAME \
|
||||
bash
|
10
docker/ubuntu20_sources.list
Normal file
10
docker/ubuntu20_sources.list
Normal file
@ -0,0 +1,10 @@
|
||||
deb http://mirrors.cloud.tencent.com/ubuntu/ focal main restricted universe multiverse
|
||||
deb http://mirrors.cloud.tencent.com/ubuntu/ focal-security main restricted universe multiverse
|
||||
deb http://mirrors.cloud.tencent.com/ubuntu/ focal-updates main restricted universe multiverse
|
||||
#deb http://mirrors.cloud.tencent.com/ubuntu/ focal-proposed main restricted universe multiverse
|
||||
#deb http://mirrors.cloud.tencent.com/ubuntu/ focal-backports main restricted universe multiverse
|
||||
deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal main restricted universe multiverse
|
||||
deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-security main restricted universe multiverse
|
||||
deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-updates main restricted universe multiverse
|
||||
#deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-proposed main restricted universe multiverse
|
||||
#deb-src http://mirrors.cloud.tencent.com/ubuntu/ focal-backports main restricted universe multiverse
|
Loading…
x
Reference in New Issue
Block a user