-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile.rhel7
25 lines (19 loc) · 1.3 KB
/
Dockerfile.rhel7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM openshift/origin-release:golang-1.10 as builder
WORKDIR /go/src/github.com/aerogear/aerogear-app-metrics
COPY . .
RUN go build -o metrics-api ./cmd/metrics-api/metrics-api.go
FROM rhel7:latest
COPY --from=builder /go/src/github.com/aerogear/aerogear-app-metrics/metrics-api /usr/bin/
USER 1001
EXPOSE 3000
ENTRYPOINT ["/usr/bin/metrics-api"]
LABEL com.redhat.component="mobile-app-metrics-container" \
io.k8s.display-name="Mobile App Metrics" \
io.k8s.description="This is the server component of the AeroGear Metrics Service. It is a RESTful API that allows mobile clients to send metrics data which will get stored in a PostgreSQL database." \
description="This is the server component of the AeroGear Metrics Service. It is a RESTful API that allows mobile clients to send metrics data which will get stored in a PostgreSQL database." \
summary="This is the server component of the AeroGear Metrics Service. It is a RESTful API that allows mobile clients to send metrics data which will get stored in a PostgreSQL database." \
usage="This image is intended to be used on OpenShift to work with mobile apps and cloud services" \
maintainer="Red Hat Mobile team" \
io.openshift.tags="mobile" \
name="mobile-1-tech-preview/mobile-app-metrics" \
version="0.0.14"