Skip to content

Commit

Permalink
fix docs. (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
dojyorin authored Dec 1, 2023
1 parent eb6f3c4 commit 20deb46
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ The simple and small deno docker image.

This image is published on DockerHub and synchronized with latest version of [denoland/deno](https://github.com/denoland/deno) every day at `06:00` UTC.

- Distroless: [dojyorin/deno:distroless](https://hub.docker.com/r/dojyorin/deno/tags?name=distroless) (default)
- Alpine: [dojyorin/deno:alpine](https://hub.docker.com/r/dojyorin/deno/tags?name=alpine)
Now, let's start using it!

- [`docker.io/dojyorin/deno`](https://hub.docker.com/r/dojyorin/deno)

# Tags

Expand All @@ -32,7 +33,7 @@ Easy to introduce in your project.
docker run --rm --init -it dojyorin/deno:latest

# Run script.
docker run --rm --init --restart always -p 0.0.0.0:8000:80 -v ./src:/data:ro dojyorin/deno:latest run /data/main.ts
docker run --rm --init --restart always -p 0.0.0.0:1993:8000 -v ./src:/data:ro dojyorin/deno:latest run /data/main.ts
```

**As compose**
Expand All @@ -43,7 +44,7 @@ services:
init: true
restart: always
ports:
- 0.0.0.0:8000:80
- 0.0.0.0:1993:8000
volumes:
- ./src:/data:ro
command:
Expand All @@ -55,13 +56,13 @@ services:
```dockerfile
FROM dojyorin/deno:latest
COPY ./src /data
EXPOSE 80
EXPOSE 8000
CMD ["run", "/data/main.ts"]
```

# Difference with official image

This project was created to solve the problems faced by [deno_docker](https://github.com/denoland/deno_docker) official images.
This project was created to solve some issues by [deno_docker](https://github.com/denoland/deno_docker) official images.

- [tini](https://github.com/krallin/tini) is redundant
- Alpine dependent on third-party image
Expand Down

0 comments on commit 20deb46

Please sign in to comment.