Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (10 months ago)
- Default Branch: master
- Last Pushed: 2024-05-05T19:32:54.000Z (8 months ago)
- Last Synced: 2025-01-02T22:55:20.986Z (8 days 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-presentCOPY *.slide /usr/present/
COPY images /usr/present/imagesCMD present -http=:8080 -play=false
```Which, compared to building only from `golang:latest` image, saves you around 850 MBs.