Commit 39b8027 1 parent 9c244c7 commit 39b8027 Copy full SHA for 39b8027
File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,17 @@ ENV PYTHONFAULTHANDLER=1 \
5
5
PYTHONUNBUFFERED=1
6
6
7
7
RUN useradd --user-group --system --create-home --no-log-init keep
8
+
9
+ # This is for MSSQL DB connections
10
+ RUN apt-get update && apt-get install -y tdsodbc unixodbc-dev \
11
+ && apt install unixodbc -y \
12
+ && apt-get clean -y
13
+
14
+ RUN echo "[FreeTDS]\n\
15
+ Description = FreeTDS unixODBC Driver\n\
16
+ Driver = /usr/lib/arm-linux-gnueabi/odbc/libtdsodbc.so\n\
17
+ Setup = /usr/lib/arm-linux-gnueabi/odbc/libtdsS.so" >> /etc/odbcinst.ini
18
+
8
19
WORKDIR /app
9
20
10
21
FROM base as builder
@@ -26,6 +37,7 @@ FROM base as final
26
37
ENV PATH="/venv/bin:${PATH}"
27
38
ENV VIRTUAL_ENV="/venv"
28
39
COPY --from=builder /venv /venv
40
+
29
41
# as per Openshift guidelines, https://docs.openshift.com/container-platform/4.11/openshift_images/create-images.html#use-uid_create-images
30
42
RUN chgrp -R 0 /app && chmod -R g=u /app
31
43
RUN chown -R keep:keep /app
You can’t perform that action at this time.
0 commit comments