mirror of https://github.com/jlelse/GoBlog
Fix Dockerfile
This commit is contained in:
parent
f23ce63043
commit
2cee446dff
|
@ -6,7 +6,8 @@ ENV GOFLAGS="-tags=linux,libsqlite3,sqlite_fts5"
|
||||||
ADD *.go go.mod go.sum /app/
|
ADD *.go go.mod go.sum /app/
|
||||||
ADD pkgs/ /app/pkgs/
|
ADD pkgs/ /app/pkgs/
|
||||||
ADD testdata/ /app/testdata/
|
ADD testdata/ /app/testdata/
|
||||||
Add templates/ /app/templates/
|
ADD templates/ /app/templates/
|
||||||
|
ADD leaflet/ /app/leaflet/
|
||||||
RUN go test -cover ./...
|
RUN go test -cover ./...
|
||||||
RUN go build -ldflags '-w -s' -o GoBlog
|
RUN go build -ldflags '-w -s' -o GoBlog
|
||||||
|
|
||||||
|
@ -22,5 +23,4 @@ HEALTHCHECK --interval=1m --timeout=10s CMD GoBlog healthcheck
|
||||||
RUN apk add --no-cache tzdata tor
|
RUN apk add --no-cache tzdata tor
|
||||||
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main sqlite-dev
|
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main sqlite-dev
|
||||||
COPY templates/ /app/templates/
|
COPY templates/ /app/templates/
|
||||||
COPY leaflet/ /app/leaflet/
|
|
||||||
COPY --from=build /app/GoBlog /bin/
|
COPY --from=build /app/GoBlog /bin/
|
Loading…
Reference in New Issue