Skip to content

Commit

Permalink
updated docker env for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
deeptha-srirangam committed Sep 6, 2024
1 parent cc74d91 commit d9a8fed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REACT_APP_DEPLOYMENT_ENV=Development
REACT_APP_TESTBED_API_BASE_URL=http://dev-testbed.ga4gh.org
REACT_APP_TESTBED_API_BASE_URL=http://localhost
REACT_APP_TESTBED_API_BASE_PORT=4500
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# Dockerfile for Connect April 2022 demo
# Dockerfile for local development
# UI pulls data from from testbed api in local docker-compose network

# Builder
FROM node:16.13.2-alpine3.15 as builder
WORKDIR /app

ARG ENV_FILE_PATH=.env.development

ENV PATH /app/node_modules/.bin:$PATH

COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm install

COPY .env.development .env.production
COPY ${ENV_FILE_PATH} .env
COPY public public
COPY src src
RUN npm run reactBuild
Expand Down

0 comments on commit d9a8fed

Please sign in to comment.