Skip to content

Commit

Permalink
eliminate Render-specific secret mounting
Browse files Browse the repository at this point in the history
  • Loading branch information
bgentry committed Jun 10, 2024
1 parent c58ec06 commit c2fcec4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ COPY ui/package.json ui/package-lock.json ./
RUN npm install
ENV NODE_ENV=production
COPY ui/ .
# TODO: this is a Render-specific build-time env var hack and isn't suitable for
# a published Dockerfile:
RUN --mount=type=secret,id=_env,dst=/app/.env \
npm exec vite build
ARG VITE_RIVER_API_BASE_URL
RUN npm exec vite build

# Build the Go binary, including embedded UI files:
FROM golang:1.22.2-alpine AS build-go
Expand Down

0 comments on commit c2fcec4

Please sign in to comment.