Bladeren bron

fix: update hugo version

pull/5/head
Rohan Verma 6 jaren geleden
bovenliggende
commit
df17b348e2
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +1
    -1
      Dockerfile
  2. +2
    -2
      content/blog/2019/2019-11-24-build-go-plugins-using-docker.md

+ 1
- 1
Dockerfile Bestand weergeven

FROM alpine:latest as build FROM alpine:latest as build


ENV HUGO_VERSION 0.56.0
ENV HUGO_VERSION 0.59.1
ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.tar.gz ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.tar.gz


# Install Hugo # Install Hugo

+ 2
- 2
content/blog/2019/2019-11-24-build-go-plugins-using-docker.md Bestand weergeven

RUN apk --no-cache add ca-certificates RUN apk --no-cache add ca-certificates
WORKDIR /myproject/ WORKDIR /myproject/
# Copy the assets from the builder image # Copy the assets from the builder image
COPY --from=builder /myproject-plugin/myproject/myproject /myproject-plugin/myproject-plugin/myproject/smtp.prov /myproject-plugin/myproject/bundled1.prov /myproject-plugin/myproject/bundled2.prov /myproject-plugin/myproject/myplugin.prov ./
COPY --from=builder /myproject-plugin/myproject/myproject /myproject-plugin/myproject-plugin/myproject/bundled0.prov /myproject-plugin/myproject/bundled1.prov /myproject-plugin/myproject/bundled2.prov /myproject-plugin/myproject/myplugin.prov ./


CMD ["./myproject", "--config", "/etc/myproject/config.toml", "--prov", "smtp.prov", "--prov", "bundled1.prov", "--prov", "bundled2.prov", "--prov", "myplugin.prov"]
CMD ["./myproject", "--config", "/etc/myproject/config.toml", "--prov", "bundled0.prov", "--prov", "bundled1.prov", "--prov", "bundled2.prov", "--prov", "myplugin.prov"]
``` ```


This image can then be pushed and used where it needs to be deployed. This image can then be pushed and used where it needs to be deployed.

Laden…
Annuleren
Opslaan