2020-10-04 19:18:15 +00:00
|
|
|
FROM codercom/code-server:latest
|
2020-10-04 21:40:00 +00:00
|
|
|
LABEL maintainer="himself@stevenpolley.net"
|
2020-10-04 19:18:15 +00:00
|
|
|
|
2020-10-04 21:40:00 +00:00
|
|
|
# Update packages
|
2020-10-04 21:23:16 +00:00
|
|
|
RUN sudo apt update && \
|
|
|
|
sudo apt upgrade -y && \
|
2020-10-23 20:32:52 +00:00
|
|
|
sudo apt install pkg-config make -y && \
|
2020-10-04 21:23:16 +00:00
|
|
|
sudo apt clean autoclean && \
|
|
|
|
sudo apt autoremove -y
|
|
|
|
|
2020-10-04 19:18:15 +00:00
|
|
|
# Install Go
|
2020-10-04 21:59:51 +00:00
|
|
|
RUN curl -L -O https://dl.google.com/go/go1.15.2.linux-amd64.tar.gz && \
|
2020-10-04 19:20:18 +00:00
|
|
|
tar xvfz go1.15.2.linux-amd64.tar.gz && \
|
2020-10-04 19:29:20 +00:00
|
|
|
sudo chown -R root:root ./go && \
|
|
|
|
sudo mv go /usr/local && \
|
2020-10-04 21:50:37 +00:00
|
|
|
rm -f go1.15.2.linux-amd64.tar.gz
|
|
|
|
|
2020-10-23 20:32:52 +00:00
|
|
|
# Install OpenCV (via GoCV bindings)
|
|
|
|
RUN go get -u -d gocv.io/x/gocv && \
|
|
|
|
cd /home/coder/go/src/gocv.io/x/gocv && \
|
|
|
|
make install && \
|
|
|
|
make clean
|
|
|
|
|
2020-10-04 21:50:37 +00:00
|
|
|
# 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 && \
|
|
|
|
sudo chown -R root:root ./hugo && \
|
2020-10-04 21:59:51 +00:00
|
|
|
sudo mv hugo /usr/local/bin && \
|
2020-10-04 21:50:37 +00:00
|
|
|
rm -f hugo_0.75.1_Linux-64bit.tar.gz LICENSE README.md
|
2020-10-04 19:18:15 +00:00
|
|
|
|
2020-10-04 21:40:00 +00:00
|
|
|
# Start code-server
|
2020-10-04 19:18:15 +00:00
|
|
|
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]
|