Compare commits

...

6 Commits

Author SHA1 Message Date
86699fc245 Use args to define versions of components
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-23 23:12:35 +00:00
025675e6a8 Remove OpenCV from environment
Not needed for development, only runtime
2020-10-23 23:08:21 +00:00
f58b1daf02 Fix typo in absolute path to go binary
Some checks failed
continuous-integration/drone/push Build is failing
2020-10-23 20:47:26 +00:00
847fcba644 Upgrade hugo from 0.75.1 to 0.76.5
Some checks failed
continuous-integration/drone/push Build is failing
2020-10-23 20:40:37 +00:00
42c0447824 Use absolute path for Go executable 2020-10-23 20:39:09 +00:00
55e50e6036 Upgrade Go from 1.15.2 to 1.15.3 2020-10-23 20:38:33 +00:00

View File

@ -1,6 +1,10 @@
FROM codercom/code-server:latest
LABEL maintainer="himself@stevenpolley.net"
# Define version of development environment components
ARG GO_VERSION=1.15.3
ARG HUGO_VERSION=0.76.5
# Update packages
RUN sudo apt update && \
sudo apt upgrade -y && \
@ -9,24 +13,18 @@ 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/go${GO_VERSION}.linux-amd64.tar.gz && \
tar xvfz go${GO_VERSION}.linux-amd64.tar.gz && \
sudo chown -R root:root ./go && \
sudo mv go /usr/local && \
rm -f go1.15.2.linux-amd64.tar.gz
# 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
rm -f go${GO_VERSION}.linux-amd64.tar.gz
# 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/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
tar xvfz hugo_${HUGO_VERSION}_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_${HUGO_VERSION}_Linux-64bit.tar.gz LICENSE README.md
# Start code-server
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]