Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Update Dockerfile to handle FLOOD_BASE_URI #879

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
ARG NODE_IMAGE=node:12.2-alpine
ARG WORKDIR=/usr/src/app/
ARG FLOOD_BASE_URI=/

FROM ${NODE_IMAGE} as nodebuild
ARG WORKDIR

ARG WORKDIR
WORKDIR $WORKDIR
ARG FLOOD_BASE_URI
ENV FLOOD_BASE_URI $FLOOD_BASE_URI

# Generate node_modules
COPY package.json \
Expand All @@ -31,9 +34,11 @@ RUN npm run build && \

# Now get the clean image without any dependencies and copy compiled app
FROM ${NODE_IMAGE} as flood
ARG WORKDIR

ARG WORKDIR
WORKDIR $WORKDIR
ARG FLOOD_BASE_URI
ENV FLOOD_BASE_URI $FLOOD_BASE_URI

# Install runtime dependencies.
RUN apk --no-cache add \
Expand Down