-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathDockerfile
29 lines (23 loc) · 996 Bytes
/
Dockerfile
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
# ESP Proxy that forwards requests into the application server.
FROM debian:buster
# Copy the Endpoints runtime Debian package.
ADD endpoints-runtime.deb endpoints-runtime.deb
# Install dependencies
RUN apt-get update && \
apt-get install --no-install-recommends -y -q ca-certificates && \
apt-get -y -q upgrade && \
apt-get install -y -q --no-install-recommends \
apt-utils adduser python \
libc6 libgcc1 libstdc++6 libuuid1 lsb-base && \
apt-get clean && rm /var/lib/apt/lists/*_* && \
dpkg -i /endpoints-runtime.deb && rm /endpoints-runtime.deb
# Create placeholder directories
RUN mkdir -p /var/lib/nginx/optional && \
mkdir -p /var/lib/nginx/extra && \
mkdir -p /var/lib/nginx/bin
# Status port 8090 is exposed by default
EXPOSE 8090
# The default HTTP/1.x port is 8080. It might help to expose this port explicitly
# since documentation still refers to using docker without additional EXPOSE step
EXPOSE 8080
ENTRYPOINT ["/usr/sbin/start_esp"]