Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
auggod committed Sep 29, 2021
1 parent 90b2e8e commit 89123b7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ARG RELEASE_TAG=develop
ARG HUGO_VERSION=0.88.0
ARG NODE_ENV=development

Expand All @@ -16,14 +17,17 @@ RUN set -x && \
apk del wget ca-certificates && \
rm /var/cache/apk/*

WORKDIR /var/www/website
WORKDIR /build

COPY . .
ARG RELEASE_TAG

ENV NODE_ENV=development
RUN git clone --branch ${RELEASE_TAG} --single-branch --depth 1 https://github.com/resonatecoop/website

RUN npm install
ENV NODE_ENV development

WORKDIR /build/website/src

RUN npm install
RUN npm install -g gulp

ARG NODE_ENV
Expand All @@ -35,8 +39,8 @@ RUN hugo -d ./public

FROM alpine:latest

WORKDIR /var/www/website
WORKDIR /build

COPY --from=builder /usr/bin/hugo /usr/bin/

COPY --from=builder /var/www/website /var/www/website
COPY --from=builder /build/website /build/website

0 comments on commit 89123b7

Please sign in to comment.