Skip to content

Commit

Permalink
ESCKAN chore: Update dockerfile to generate the .env
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Jun 3, 2024
1 parent 1673193 commit 1d53cc1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ARG NODE_PARENT=node:18
ARG VITE_COMPOSER_API_URL

FROM ${NODE_PARENT} as frontend

Expand All @@ -11,6 +12,10 @@ COPY nginx/default.conf ${BUILDDIR}

RUN yarn install
COPY . ${BUILDDIR}

# Generate the .env file with ARG values
RUN echo "VITE_COMPOSER_API_URL=${VITE_COMPOSER_API_URL}" > .env

RUN yarn build

FROM nginx:1.19.3-alpine
Expand Down
3 changes: 3 additions & 0 deletions deploy/codefresh/codefresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ steps:
working_directory: ./sckan-explorer
buildkit: true
registry: "${{CODEFRESH_REGISTRY}}"
arguments:
build_arguments:
- VITE_COMPOSER_API_URL=${{VITE_COMPOSER_API_URL}}
deploy:
stage: "deploy"
title: "Deploying SCKANNER"
Expand Down

0 comments on commit 1d53cc1

Please sign in to comment.