Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
this docker image, container will be used in cicd pipeline to generate the hugo website.
  • Loading branch information
qtrinh2 authored Dec 7, 2023
1 parent 882de72 commit 292f134
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mv-website/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM klakegg/hugo:0.107.0-alpine as build-stage

ARG hugobuildargs
ENV HUGO_BUILD_ARGS $hugobuildargs

RUN apk add npm

WORKDIR /app
ADD . .

RUN npm install -y
RUN hugo ${HUGO_BUILD_ARGS}

FROM nginx:1.23-alpine

COPY --from=build-stage /app/public/ /usr/share/nginx/html

0 comments on commit 292f134

Please sign in to comment.