Update Dockerfile

This commit is contained in:
tiennm99 committed 2024-09-14 18:35:24 +07:00
1 parent d1c452de94
commit 891cbcfa21
1 file changed
+2 -5
+2 -5
View File
@@ -1,7 +1,4 @@
FROM golang:1.22 AS builder
RUN apt-get update && apt-get install -y git
RUN go install -tags extended github.com/gohugoio/hugo@v0.124.0
FROM peaceiris/hugo:v0.124.0-full AS builder
WORKDIR /site
@@ -13,6 +10,6 @@ FROM nginx:alpine
COPY --from=builder /site/public /usr/share/nginx/html
EXPOSE 3000
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]