development-environment/Dockerfile

31 lines
1.0 KiB
Docker
Raw Permalink Normal View History

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
# Define version of development environment components
ARG GO_VERSION=1.15.3
ARG HUGO_VERSION=0.76.5
2020-10-04 21:40:00 +00:00
# Update packages
RUN sudo apt update && \
sudo apt upgrade -y && \
2020-10-23 20:32:52 +00:00
sudo apt install pkg-config make -y && \
sudo apt clean autoclean && \
sudo apt autoremove -y
2020-10-04 19:18:15 +00:00
# Install Go
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 && \
2020-10-04 19:29:20 +00:00
sudo chown -R root:root ./go && \
sudo mv go /usr/local && \
rm -f go${GO_VERSION}.linux-amd64.tar.gz
2020-10-04 21:50:37 +00:00
# Install Hugo
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 && \
2020-10-04 21:50:37 +00:00
sudo chown -R root:root ./hugo && \
sudo mv hugo /usr/local/bin && \
rm -f hugo_${HUGO_VERSION}_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", "."]