23 lines
804 B
YAML
23 lines
804 B
YAML
services:
|
|
golang-base:
|
|
build:
|
|
dockerfile_inline: |
|
|
FROM golang:alpine
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
|
|
&& apk add --no-cache git ca-certificates tzdata
|
|
ENV TZ=Asia/Shanghai
|
|
ENV GO111MODULE=on
|
|
ENV GOPROXY=https://goproxy.cn,direct
|
|
ENV CGO_ENABLED=0
|
|
ENV GOTOOLCHAIN=auto
|
|
image: golang-base:latest
|
|
|
|
ffmpeg-base:
|
|
build:
|
|
dockerfile_inline: |
|
|
FROM alpine:3.19
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
|
|
&& apk add --no-cache ca-certificates tzdata ffmpeg
|
|
ENV TZ=Asia/Shanghai
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
image: alpine-base:latest |