mirror of https://github.com/jlelse/GoBlog
Fix, don't cache apk repo
This commit is contained in:
parent
4b302ced71
commit
031dd0eca4
|
@ -1,7 +1,7 @@
|
|||
FROM golang:1.16-alpine3.13 as build
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache git gcc musl-dev
|
||||
RUN apk add --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
|
||||
ADD *.go go.mod go.sum /app/
|
||||
RUN go build --tags "libsqlite3 linux sqlite_fts5"
|
||||
|
||||
|
@ -15,6 +15,6 @@ EXPOSE 8080
|
|||
CMD ["GoBlog"]
|
||||
HEALTHCHECK --interval=1m --timeout=10s CMD GoBlog healthcheck
|
||||
RUN apk add --no-cache tzdata tor
|
||||
RUN apk add --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 --from=build /app/GoBlog /bin/
|
Loading…
Reference in New Issue