-
Notifications
You must be signed in to change notification settings - Fork 94
/
Dockerfile
38 lines (27 loc) · 999 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
31
32
33
34
35
36
37
38
FROM debian:bullseye-slim
LABEL maintainer="jacob.alberty@foundigital.com"
ENV PREFIX=/usr/local/firebird
ENV VOLUME=/firebird
ENV DEBIAN_FRONTEND noninteractive
ENV FBURL=https://github.com/FirebirdSQL/firebird/releases/download/v3.0.10/Firebird-3.0.10.33601-0.tar.bz2
ENV DBPATH=/firebird/data
COPY pre_build /home/pre_build
COPY post_build /home/post_build
RUN chmod -R +x /home/post_build /home/pre_build
COPY build.sh ./build.sh
RUN chmod +x ./build.sh && \
sync && \
./build.sh && \
rm -f ./build.sh
VOLUME ["/firebird"]
EXPOSE 3050/tcp
COPY docker-entrypoint.sh ${PREFIX}/docker-entrypoint.sh
RUN chmod +x ${PREFIX}/docker-entrypoint.sh
COPY docker-healthcheck.sh ${PREFIX}/docker-healthcheck.sh
RUN chmod +x ${PREFIX}/docker-healthcheck.sh \
&& apt-get update \
&& apt-get -qy install netcat \
&& rm -rf /var/lib/apt/lists/*
HEALTHCHECK CMD ${PREFIX}/docker-healthcheck.sh || exit 1
ENTRYPOINT ["/usr/local/firebird/docker-entrypoint.sh"]
CMD ["firebird"]