Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Update frontend docker configs and get container building
Browse files Browse the repository at this point in the history
  • Loading branch information
nickviola committed Feb 15, 2022
1 parent 25e57e5 commit ba8bbb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ services:
container_name: li-pca-api
hostname: li-pca-api
restart: on-failure
links:
- mongodb
volumes:
- .:/usr/src/api
environment:
Expand Down Expand Up @@ -45,18 +43,20 @@ services:

li-pca-web:
build:
context: ./src/ui
dockerfile: ./Dockerfile
context: .src/ui
# dockerfile: ./Dockerfile
container_name: li-pca-web
hostname: li-pca-web
stdin_open: true
tty: true
restart: on-failure
depends_on:
- li-pca-api
ports:
- 4300:4300
stdin_open: true
tty: true
volumes:
- ./src/ui:/usr/src/ui
command: bash -c "npm ci && npm start --only=prod --no-audit"
networks:
- backend
- frontend
Expand Down
5 changes: 4 additions & 1 deletion src/ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM node:12.18.3
WORKDIR /usr/src/ui
COPY package*.json ./
RUN npm install
EXPOSE 4300
COPY . .

# EXPOSE 4300
VOLUME ["/usr/src/ui"]
CMD [ "npm", "start" ]

0 comments on commit ba8bbb7

Please sign in to comment.