forked from easegress-io/easegress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (23 loc) · 991 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
30
# This docker file require binary files located at directory 'build/bin/',
# and the binary files must be built for Linux x64 platform.
# But the standard 'make build' command generates binary files at 'bin/',
# and may not target for Linux x64.
#
# To build docker images from this file, please build with command:
# make build_docker
FROM alpine:3.19
WORKDIR /opt/easegress
COPY build/package/entrypoint.sh /
COPY build/bin/egctl build/bin/easegress-server build/bin/egbuilder /opt/easegress/bin/
# If the following apk command takes too much time or failed because of
# network issues, we can setup a proxy for it.
#
# ENV http_proxy 'http://192.168.1.1:7890'
# ENV https_proxy 'http://192.168.1.1:7890'
RUN apk --no-cache add tini tzdata && \
chmod +x /entrypoint.sh /opt/easegress/bin/*
# If we setup a proxy for the apk command, we must unset it
# ENV http_proxy=
# ENV https_proxy=
ENV PATH /opt/easegress/bin:$PATH
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]