development-environment/Dockerfile
Steven Polley ece2e571a0
All checks were successful
continuous-integration/drone/push Build is passing
Fix - move hugo into /usr/local/bin directory
2020-10-04 21:59:51 +00:00

26 lines
857 B
Docker

FROM codercom/code-server:latest
LABEL maintainer="himself@stevenpolley.net"
# Update packages
RUN sudo apt update && \
sudo apt upgrade -y && \
sudo apt clean autoclean && \
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 && \
sudo chown -R root:root ./go && \
sudo mv go /usr/local && \
rm -f go1.15.2.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 && \
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
# Start code-server
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]