-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (46 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
57 lines (46 loc) · 1.41 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM debian:buster-slim
LABEL maintainer="[email protected]"
LABEL version="3.0.4.33054"
LABEL vendor="ControlSoft Sistemas"
LABEL release-date="2020-09-25"
ENV FBURL=https://github.com/FirebirdSQL/firebird/releases/download/R3_0_4/Firebird-3.0.4.33054-0.amd64.tar.gz
ENV DEBIAN_FRONTEND noninteractive
ENV FBPATH=/opt/firebird
ENV FBBIN=/opt/firebird/bin
ENV PATH="$FBBIN:$PATH"
COPY build.sh ./build.sh
RUN apt-get update && apt-get install -qy --no-install-recommends \
libtommath1 \
libicu63 \
procps \
wget \
ca-certificates \
libicu-dev \
libncurses-dev \
libncurses5 \
libtommath-dev \
netbase \
netcat && \
ln -sf /usr/lib/x86_64-linux-gnu/libtommath.so.1 /usr/lib/x86_64-linux-gnu/libtommath.so.0 && \
chmod +x ./build.sh && \
sync && \
./build.sh && \
rm -f ./build.sh && \
apt-get remove --purge -y \
wget \
ca-certificates \
libicu-dev \
libncurses-dev \
libtommath-dev && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
VOLUME ["/databases"]
EXPOSE 3050/tcp
EXPOSE 3051/tcp
COPY docker-entrypoint.sh ${FBPATH}/docker-entrypoint.sh
COPY docker-healthcheck.sh ${FBPATH}/docker-healthcheck.sh
RUN chmod +x ${FBPATH}/docker-entrypoint.sh
RUN chmod +x ${FBPATH}/docker-healthcheck.sh
HEALTHCHECK CMD ${FBPATH}/docker-healthcheck.sh || exit 1
ENTRYPOINT ["/opt/firebird/docker-entrypoint.sh"]
CMD ["fbguard"]