FROM golang:1.17-alpine RUN apk update && apk add make git bash WORKDIR /var/www/status COPY . . RUN make CMD ["/bin/bash", "-c", "go run generate.go && go run main.go"] RUN chown -R root:root /var/www/status/db EXPOSE 8798