Skip to content

Commit

Permalink
frontend deployment fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Jan 9, 2024
1 parent 343ab4a commit d5aff22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ services:
- 3000:3000
stdin_open: true
volumes:
- ./frontend/.env:/frontend/.env
- ./frontend/src/config.json:/frontend/src/config.json
- ../frontend/.env:/frontend/.env
- ../frontend/src/config.json:/frontend/src/config.json



9 changes: 6 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
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

RUN yarn install --production

0 comments on commit d5aff22

Please sign in to comment.