Skip to content

Commit

Permalink
Docker issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
awaismohammad23 committed Dec 7, 2023
1 parent c61610a commit ef63091
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 6 additions & 2 deletions docker-compose-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ services:
- backend
networks:
- vh-net
volumes:
- /app/node_modules
- ./frontend:/app


volumes:
db-data:



Expand All @@ -85,3 +87,5 @@ volumes:
# networks:
# vh-net:
# ipv4_address: 172.19.0.6
volumes:
db-data:
13 changes: 5 additions & 8 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
# Use a specific version of the Node.js image
FROM node:16.13.2

# Set the working directory inside the container
WORKDIR /frontend

# Copy only the package.json and package-lock.json files to leverage Docker cache
COPY package.json package-lock.json ./

WORKDIR /app
COPY package.json .
COPY package-lock.json .
# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .



# Command to start the application
CMD ["npm", "start"]
2 changes: 1 addition & 1 deletion frontend/src/Components/LoginScreen/Signin/Signin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function Signin(props) {

<div>
<div className="Welcome-Text">
Welcome to Virtual Horizon
Welcome to Virtual Horizonss
<br />{" "}
</div>
</div>
Expand Down

0 comments on commit ef63091

Please sign in to comment.