Skip to content

Commit

Permalink
edit: edited docker compose file and ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
Clue355 committed Dec 13, 2023
1 parent fa6f1bc commit 3d25845
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Docker Image
name: LGT Docker Build and Push Image

on:
pull_request:
Expand Down
22 changes: 0 additions & 22 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,3 @@ CMD ["pnpm", "run", "dev"]

# Specifies the port the container listens to
EXPOSE 3000

## build docker file and run in dev mode

# docker build -f Dockerfile.dev -t your-image-name .
# docker run --name container_name -p 3000:3000 -v $(pwd):/app image_name

# Follow the real time logs again after stopping and starting the container
# docker logs -f container_name

# project link: http://localhost:3000/

# or

## build docker file and run in production mode

# docker build -f Dockerfile.prod -t your-image-name .
# docker run --name container_name -p 3000:3000 your-image-name

# Follow the real time logs again after stopping and starting the container
# docker logs -f container_name

# project link: http://localhost:3000/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ Build the image:
- -t is to rename the file and you can add a tag that's included below after the colon ":"

```
docker build -f Dockerfile.dev -t github_dev:dev .
docker build -f Dockerfile.dev -t ghcr.io/letsgettechnical/name:tag .
```
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.8'

services:
app-dev:
image: clue355/docker-test:dev
image: ghcr.io/letsgettechnical/dev:latest
ports:
- "3000:3000"
volumes:
Expand Down

0 comments on commit 3d25845

Please sign in to comment.