Skip to content

Commit

Permalink
Merge pull request #8 from ga4gh/update-dockerfile-env
Browse files Browse the repository at this point in the history
updated docker env for local development
  • Loading branch information
dashrath-chauhan authored Sep 9, 2024
2 parents cc74d91 + e47deba commit 3647ff2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
cache-to: type=gha,mode=max

- name: Start Services
run: docker-compose up -d
run: docker compose up -d
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 3647ff2

Please sign in to comment.