https://github.com/stanislav-zeman/go-present
Go present Docker image
https://github.com/stanislav-zeman/go-present
dockerfile go golang image present
Last synced: 11 days ago
JSON representation
Go present Docker image
- Host: GitHub
- URL: https://github.com/stanislav-zeman/go-present
- Owner: stanislav-zeman
- License: cc-by-sa-4.0
- Created: 2024-03-15T16:58:52.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-05T19:32:54.000Z (about 2 years ago)
- Last Synced: 2026-03-01T22:40:39.290Z (4 months ago)
- Topics: dockerfile, go, golang, image, present
- Language: Dockerfile
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Present Docker image
This repository contains a Dockerfile and a pre-built image with [Go present](https://pkg.go.dev/golang.org/x/tools/present) tool.
## Usage
You can run your slides directly using the image. The slides are mounted to the `/usr/present` directory like so:
```
docker run -v :/usr/present -p 3999:8080 ghcr.io/stanislav-zeman/go-present
```
Alternatively, you can also use the DockerHub image:
```
docker run -v :/usr/present -p 3999:8080 standadev/go-present
```
You can also use this image as the base image in your Dockerfile:
```
FROM ghcr.io/stanislav-zeman/go-present
COPY *.slide /usr/present/
COPY images /usr/present/images
CMD present -http=:8080 -play=false
```
Which, compared to building only from `golang:latest` image, saves you around 850 MBs.