mirror of
https://github.com/status-im/fathom.git
synced 2025-02-28 19:10:36 +00:00
fix Dockerfile to build
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
12037bf933
commit
09e052e114
@ -5,14 +5,16 @@ COPY gulpfile.js ./
|
|||||||
COPY assets/ ./assets/
|
COPY assets/ ./assets/
|
||||||
RUN npm install && NODE_ENV=production ./node_modules/gulp/bin/gulp.js
|
RUN npm install && NODE_ENV=production ./node_modules/gulp/bin/gulp.js
|
||||||
|
|
||||||
FROM golang:latest AS binarybuilder
|
FROM golang:1.12.14-alpine3.9 AS binarybuilder
|
||||||
|
RUN apk add --no-cache git gcc musl-dev make
|
||||||
RUN go get -u github.com/gobuffalo/packr/packr
|
RUN go get -u github.com/gobuffalo/packr/packr
|
||||||
|
RUN go get -u github.com/usefathom/fathom
|
||||||
WORKDIR /go/src/github.com/usefathom/fathom
|
WORKDIR /go/src/github.com/usefathom/fathom
|
||||||
COPY . /go/src/github.com/usefathom/fathom
|
COPY . /go/src/github.com/usefathom/fathom
|
||||||
COPY --from=assetbuilder /app/assets/build ./assets/build
|
COPY --from=assetbuilder /app/assets/build ./assets/build
|
||||||
RUN make docker
|
RUN make docker
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:3.14
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
HEALTHCHECK --retries=10 CMD ["wget", "-qO-", "http://localhost:8080/health"]
|
HEALTHCHECK --retries=10 CMD ["wget", "-qO-", "http://localhost:8080/health"]
|
||||||
RUN apk add --update --no-cache bash ca-certificates
|
RUN apk add --update --no-cache bash ca-certificates
|
||||||
|
Loading…
x
Reference in New Issue
Block a user