Compare commits
3 Commits
e4114f1811
...
847fcba644
Author | SHA1 | Date | |
---|---|---|---|
847fcba644 | |||
42c0447824 | |||
55e50e6036 |
14
Dockerfile
14
Dockerfile
@ -9,24 +9,24 @@ RUN sudo apt update && \
|
||||
sudo apt autoremove -y
|
||||
|
||||
# Install Go
|
||||
RUN curl -L -O https://dl.google.com/go/go1.15.2.linux-amd64.tar.gz && \
|
||||
tar xvfz go1.15.2.linux-amd64.tar.gz && \
|
||||
RUN curl -L -O https://dl.google.com/go/go1.15.3.linux-amd64.tar.gz && \
|
||||
tar xvfz go1.15.3.linux-amd64.tar.gz && \
|
||||
sudo chown -R root:root ./go && \
|
||||
sudo mv go /usr/local && \
|
||||
rm -f go1.15.2.linux-amd64.tar.gz
|
||||
rm -f go1.15.3.linux-amd64.tar.gz
|
||||
|
||||
# Install OpenCV (via GoCV bindings)
|
||||
RUN go get -u -d gocv.io/x/gocv && \
|
||||
RUN /usr/local/bin/go get -u -d gocv.io/x/gocv && \
|
||||
cd /home/coder/go/src/gocv.io/x/gocv && \
|
||||
make install && \
|
||||
make clean
|
||||
|
||||
# Install Hugo
|
||||
RUN curl -L -O https://github.com/gohugoio/hugo/releases/download/v0.75.1/hugo_0.75.1_Linux-64bit.tar.gz && \
|
||||
tar xvfz hugo_0.75.1_Linux-64bit.tar.gz && \
|
||||
RUN curl -L -O https://github.com/gohugoio/hugo/releases/download/v0.76.5/hugo_0.76.5_Linux-64bit.tar.gz && \
|
||||
tar xvfz hugo_0.76.5_Linux-64bit.tar.gz && \
|
||||
sudo chown -R root:root ./hugo && \
|
||||
sudo mv hugo /usr/local/bin && \
|
||||
rm -f hugo_0.75.1_Linux-64bit.tar.gz LICENSE README.md
|
||||
rm -f hugo_0.76.5_Linux-64bit.tar.gz LICENSE README.md
|
||||
|
||||
# Start code-server
|
||||
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]
|
||||
|
Loading…
Reference in New Issue
Block a user