mirror of
https://github.com/balzack/databag.git
synced 2025-04-26 19:45:26 +00:00
* 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
17 lines
366 B
Docker
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
|