thumbnail content type
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

* content type of thumbnail is separated from the full photo content type
* remove git from build dependencies in Dockerfile
This commit is contained in:
zegkljan
2022-02-20 01:09:54 +01:00
parent 1cf44e3bfc
commit 7506421848
4 changed files with 18 additions and 15 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ FROM alpine:3.15.0 AS build
VOLUME ["/data"]
COPY . /oko-server/git
RUN apk add --no-cache go git && \
RUN apk add --no-cache go && \
cd /oko-server/git && \
go build -ldflags "-X \"main.sha1ver=$(git rev-parse HEAD)\" -X \"main.buildTime=$(date -Iseconds)\""
go build -ldflags "-X \"main.sha1ver=$(cat .git/$(cat .git/HEAD | sed 's|ref: ||g'))\" -X \"main.buildTime=$(date -Iseconds)\""
FROM alpine:3.15.0
WORKDIR /oko-server