mirror of
https://github.com/status-im/fathom.git
synced 2025-02-28 19:10:36 +00:00
Docker file hasn't been working properly for a while. User resolved it with: https://github.com/usefathom/fathom/issues/235#issuecomment-468964157
22 lines
701 B
Docker
22 lines
701 B
Docker
FROM node:alpine AS assetbuilder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
COPY gulpfile.js ./
|
|
COPY assets/ ./assets/
|
|
RUN npm install && NODE_ENV=production ./node_modules/gulp/bin/gulp.js
|
|
|
|
FROM golang:latest AS binarybuilder
|
|
RUN go get -u github.com/gobuffalo/packr/packr
|
|
WORKDIR /go/src/github.com/usefathom/fathom
|
|
COPY . /go/src/github.com/usefathom/fathom
|
|
COPY --from=assetbuilder /app/assets/build ./assets/build
|
|
RUN make docker
|
|
|
|
FROM alpine:latest
|
|
EXPOSE 8080
|
|
HEALTHCHECK --retries=10 CMD ["wget", "-qO-", "http://localhost:8080/health"]
|
|
RUN apk add --update --no-cache bash ca-certificates
|
|
WORKDIR /app
|
|
COPY --from=binarybuilder /go/src/github.com/usefathom/fathom/fathom .
|
|
CMD ["./fathom", "server"]
|