Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.