Fix Makefile minify install and Docker image
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Build
|
# Build
|
||||||
FROM golang:alpine AS build
|
FROM golang:alpine AS build
|
||||||
|
|
||||||
RUN apk add --no-cache -U build-base git make ffmpeg-dev
|
RUN apk add --no-cache -U build-base git make
|
||||||
|
|
||||||
RUN mkdir -p /src
|
RUN mkdir -p /src
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ RUN make server VERSION=$VERSION COMMIT=$COMMIT
|
|||||||
# Runtime
|
# Runtime
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk --no-cache -U add ca-certificates tzdata ffmpeg
|
RUN apk --no-cache -U add ca-certificates tzdata
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -7,7 +7,7 @@ COMMIT=$(shell git rev-parse --short HEAD || echo "$COMMIT")
|
|||||||
all: build
|
all: build
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
@go install github.com/tdewolff/minify/cmd/minify@latest
|
@go install github.com/tdewolff/minify/v2/cmd/minify@latest
|
||||||
|
|
||||||
dev : DEBUG=1
|
dev : DEBUG=1
|
||||||
dev : build
|
dev : build
|
||||||
|
|||||||
Reference in New Issue
Block a user