-
Notifications
You must be signed in to change notification settings - Fork 96
/
Dockerfile
56 lines (39 loc) · 1.34 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM --platform=$BUILDPLATFORM debian:bullseye-slim as build
LABEL maintainer="jacob.alberty@foundigital.com"
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ENV PREFIX=/usr/local/firebird
ENV VOLUME=/firebird
ENV DEBIAN_FRONTEND noninteractive
ENV FBURL=https://github.com/FirebirdSQL/firebird/releases/download/v4.0.2/Firebird-4.0.2.2816-0.tar.xz
ENV DBPATH=/firebird/data
COPY fixes /home/fixes
RUN chmod -R +x /home/fixes
COPY build.sh ./build.sh
RUN chmod +x ./build.sh && \
sync && \
./build.sh && \
rm -f ./build.sh
FROM --platform=$TARGETPLATFORM debian:bullseye-slim
ENV PREFIX=/usr/local/firebird
ENV VOLUME=/firebird
ENV DEBIAN_FRONTEND noninteractive
ENV DBPATH=/firebird/data
VOLUME ["/firebird"]
EXPOSE 3050/tcp
COPY --from=build /home/firebird/firebird.tar.gz /home/firebird/firebird.tar.gz
COPY install.sh ./install.sh
RUN chmod +x ./install.sh && \
sync && \
./install.sh && \
rm -f ./install.sh
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"]