Skip to content

Commit

Permalink
Merge pull request #29 from elixir-europe/main
Browse files Browse the repository at this point in the history
modifying docker compose and dockerfile for image update
  • Loading branch information
costero-e authored Dec 12, 2023
2 parents 39b51af + c086e6f commit 424ea3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
16 changes: 3 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
version: '3.8'

networks:
my-app-network:
external: true

services:

beacon-network-frontend:
build:
context: ./frontend
#command: ["yarn"]
#command: ["node", "/opt/yarn-v1.22.19/bin/yarn.js", "start" ]
command: yarn start
container_name: beacon-network-frontend
command: node /opt/yarn-v1.22.19/bin/yarn.js start
container_name: bn-ui
environment:
- CHOKIDAR_USEPOLLING=true
ports:
- 3000:3000
stdin_open: true
volumes:
- ./frontend:/usr/src/app
networks:
- my-app-network
stdin_open: true
9 changes: 7 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
FROM node:19.0-alpine

# set working directory
WORKDIR /usr/src/app
WORKDIR ./frontend

# add _/usr/src/app/node_modules/.bin_ to $PATH
ENV PATH /usr/src/app/node_modules/.bin:$PATH
ENV PATH /frontend/node_modules/.bin:$PATH

# install app dependencies
COPY package.json .
COPY yarn.lock .
COPY public ./public
COPY src ./src


RUN yarn install --production


0 comments on commit 424ea3d

Please sign in to comment.