My blog
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile.dev 674B

1234567891011121314151617181920212223242526272829
  1. FROM debian:bullseye-slim
  2. ARG VERSION=0.59.1
  3. WORKDIR /tmp
  4. RUN apt-get update \
  5. && apt-get install -y tar curl ca-certificates python3 python-pip \
  6. && apt-get clean \
  7. && pip install Pygments \
  8. && curl https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_extended_${VERSION}_Linux-64bit.tar.gz -L | tar -xvz \
  9. && mv /tmp/hugo /usr/local/bin/hugo \
  10. && rm -rf /tmp/*
  11. RUN useradd -m -u 1000 -U -p '' -s /bin/bash hugo \
  12. && mkdir -p /opt/workdir \
  13. && chown -R 1000:1000 /home/hugo /opt/workdir /usr/local/bin/hugo
  14. USER 1000
  15. WORKDIR /opt/workdir
  16. VOLUME /opt/workdir
  17. EXPOSE 1313
  18. ENTRYPOINT /usr/local/bin/hugo
  19. CMD ["--help"]