Skip to content

Port number assignment #34

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ WORKDIR /app
COPY package.json /app
RUN npm install
COPY . /app
EXPOSE 8900
# EXPOSE 8900
EXPOSE 9000
CMD npm start
2 changes: 2 additions & 0 deletions docker-compose-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Build the image and start the container
docker-compose up
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ services:
volumes:
- ./:/app
ports:
- 8900:8900
# - 8900:8900
- 9000:9000
command: sh -c "npm install && npm start"
4 changes: 4 additions & 0 deletions docker-imagebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Build the image: docker build -t <image-name> <relative-path-to-dockerfile>
docker build -t client .
# Run the image: docker container run -p <host port:container port> <image-name>
docker container run -p 8900:8900 client