Skip to content

Commit

Permalink
two stage build
Browse files Browse the repository at this point in the history
  • Loading branch information
devincowan committed Oct 2, 2024
1 parent 378d5ac commit 3d1683e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM node:14.14.0 as node-build
# Build stage
FROM node:14.14.0 as build-stage

# Arg used by the node build for discovery app
# This is the path to the bucket where the static files are stored
# This should be the same as the STATIC_URL in the Django settings
ARG VUE_APP_BUCKET_URL_PUBLIC_PATH
ARG VUE_APP_HYDROSHARE_URL

ADD . /

WORKDIR /

RUN npm install && \
npm run build
npm run build

# Production stage
FROM nginx:alpine

COPY --from=build-stage /dist /dist

0 comments on commit 3d1683e

Please sign in to comment.