forked from elastic/apm-server
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 835 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 835 Bytes
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
26
27
28
29
30
31
FROM golang:1.14.7
MAINTAINER Nicolas Ruflin <ruflin@elastic.co>
RUN set -x && \
apt-get update && \
apt-get install -y --no-install-recommends \
netcat python3 python3-pip python3-venv && \
apt-get clean
ENV PYTHON_ENV=/tmp/python-env
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade setuptools
# Setup work environment
ENV APM_SERVER_PATH /usr/share/apm-server
RUN mkdir -p $APM_SERVER_PATH
WORKDIR $APM_SERVER_PATH
COPY . $APM_SERVER_PATH
# Use OSS version of apm-server
RUN make apm-server-oss
RUN mv /usr/share/apm-server/apm-server-oss /usr/share/apm-server/apm-server
#CMD ./apm-server -e -d "*"
ENTRYPOINT ["/usr/share/apm-server/apm-server", "-c", "/usr/share/apm-server/apm-server.yml"]
# Add healthcheck for docker/healthcheck metricset to check during testing
#HEALTHCHECK CMD exit 0