Fix Makefile minify install and Docker image

This commit is contained in:
James Mills
2022-10-05 10:31:59 +10:00
parent d4ab395515
commit 1a9f85b449
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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