Skip to content

Commit

Permalink
no proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
CMGS committed Jul 2, 2024
1 parent 9c04744 commit 428080e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,19 @@ FROM ubuntu:jammy AS BUILD
COPY . /go/src/github.com/projecteru2/yavirt
WORKDIR /go/src/github.com/projecteru2/yavirt
ARG KEEP_SYMBOL
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list
RUN apt update
RUN apt install -y golang-1.20 build-essential libvirt-dev make genisoimage libguestfs-dev libcephfs-dev librbd-dev librados-dev
RUN apt install -y git
# RUN snap install go --classic
ENV PATH="$PATH:/usr/lib/go-1.20/bin/"

RUN go version
RUN make deps CN=1
RUN make deps
RUN make && ./bin/yavirtd --version

FROM ubuntu:jammy

RUN mkdir /etc/yavirt/ && \
sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list && \
apt update && \
apt install -y libvirt-dev libguestfs-dev genisoimage libcephfs-dev librbd-dev librados-dev

Expand Down

0 comments on commit 428080e

Please sign in to comment.