databag/net/server/Dockerfile.dev
Lucian I. Last 2b3052ac3f
Better dev docker containers, Simpler production docker file, caddy for ssl (#136)
* Better dev docker containers, Simpler production docker file, caddy for ssl

* Fix repeater docker image

* Add depends on

* Use recommended caddy volumes & change to using databag image

* move to using examples folder for installation

* lint

* Tested example linux on bare metal

* Add DATABAG_PORT env and fix caddy

* Add dev_database for local sqlite testing

* incorrect use -z

* Add platform goarch goos optional envs

* Add more caching for faster rebuilds
2025-02-05 12:04:29 -08:00

17 lines
366 B
Docker

FROM golang:alpine
RUN apk add --no-cache build-base imagemagick sqlite ffmpeg curl
RUN mkdir -p /opt/databag
RUN mkdir -p /var/lib/databag
RUN mkdir -p /app/databag/net
RUN mkdir -p /tmp/databag-go-cache
WORKDIR /tmp/databag-go-cache
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/go/pkg/mod \
go mod download
WORKDIR /
RUN rm -rf /tmp/databag-go-cache