Skip to content

Commit 9cc974d

Browse files
committed
fixed port mapping
1 parent ecd5624 commit 9cc974d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/webportfolio:latest
4242
sudo docker stop $(sudo docker ps -aq) || true
4343
sudo docker rm $(sudo docker ps -aq) || true
44-
sudo docker run -d -p 80:80 --name webportfolio ${{ secrets.DOCKER_USERNAME }}/webportfolio:latest
44+
sudo docker run -d -p 80:3000 --name webportfolio ${{ secrets.DOCKER_USERNAME }}/webportfolio:latest

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RUN npm install
1313
# Copy the rest of the application files
1414
COPY . .
1515

16-
# Expose port 5173 (Vite default port)
17-
EXPOSE 80
16+
# Expose port 3000
17+
EXPOSE 3000
1818

1919
# Run the development server
20-
CMD ["PORT=80","npm", "start"]
20+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)