Skip to content

Commit

Permalink
Pushed docker image to docker hub and updated docker compose to use i…
Browse files Browse the repository at this point in the history
…mage for running app (#29)

* updated dockerfile

* updated docker compose to pull the image from docker hub
  • Loading branch information
mfaisalkhatri committed Sep 9, 2024
1 parent 0a50612 commit 1635a36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:lts

RUN mkdir /restful-ecommerce
RUN mkdir /restful-ecommerce-app

WORKDIR /restful-ecommerce
WORKDIR /restful-ecommerce-app

COPY ./ ./

Expand Down
5 changes: 2 additions & 3 deletions docker-compose-ecommerce.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# To execute this docker-compose yml file use `docker compose -f docker-compose-ecommerce.yml up -d`
# Add the `-d` flag at the end for detached execution
# To stop the execution, hit Ctrl+C, and then `docker compose -f docker-compose-ecommerce.yml down`
version: '3'
services:
restful-ecommerce:
build: ./
image: mfaisalkhatri/restful-ecommerce
ports:
- "3004:3004"
- 3004:3004

0 comments on commit 1635a36

Please sign in to comment.