-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 780 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 780 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
FROM gliderlabs/alpine:latest
#FROM python:3.4.9-alpine3.8
LABEL maintainer="elastest-users@googlegroups.com"
LABEL description="Provides the service manager docker image."
ARG GIT_COMMIT=unspecified
LABEL git_commit=$GIT_COMMIT
ARG COMMIT_DATE=unspecified
LABEL commit_date=$COMMIT_DATE
ARG VERSION=unspecified
LABEL version=$VERSION
WORKDIR /app
COPY ./src /app
RUN apk --update add --virtual build-deps python3-dev build-base linux-headers libffi-dev openssl-dev
RUN apk --update add python3 py3-pip openssl ca-certificates git \
&& pip3 install --upgrade setuptools pip \
&& pip3 install -r /app/requirements.txt && rm /app/requirements.txt \
&& apk del build-deps
ENV ESM_PORT 8080
ENV ESM_CHECK_PORT 5000
EXPOSE 8080 5000
CMD ["python3", "/app/runesm.py"]