Skip to content

Commit

Permalink
Update docker build.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwanglst committed Feb 27, 2024
1 parent c8cb6aa commit e8a78e3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
FROM ubuntu:16.04
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && \
apt-get install -y build-essential git cmake software-properties-common \
apt-get install -y apt-utils build-essential git cmake software-properties-common \
zlib1g-dev libevent-dev

RUN add-apt-repository ppa:gophers/archive && \
RUN add-apt-repository ppa:longsleep/golang-backports && \
apt-get update && \
apt-get install -y golang-1.9-go && \
cp /usr/lib/go-1.9/bin/go* /usr/bin/.
apt-get install -y golang-1.21-go && \
cp /usr/lib/go-1.21/bin/go* /usr/bin/.

ENV GOROOT /usr/lib/go-1.21

RUN mkdir /src
WORKDIR /src

RUN mkdir /src/lsquic
COPY ./ /src/lsquic/

RUN git clone https://boringssl.googlesource.com/boringssl && \
RUN git clone https://github.com/google/boringssl.git && \
cd boringssl && \
git checkout a2278d4d2cabe73f6663e3299ea7808edfa306b9 && \
git checkout 9fc1c33e9c21439ce5f87855a6591a9324e569fd && \
cmake . && \
make

Expand Down

0 comments on commit e8a78e3

Please sign in to comment.