"Fossies" - the Fresh Open Source Software Archive

Member "nocodb-0.83.5/packages/nocodb/Dockerfile-ORACLE" (27 Nov 2021, 3025 Bytes) of package /linux/misc/nocodb-0.83.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 FROM alpine:latest
    2 
    3 #ENV LD_LIBRARY_PATH=/lib
    4 
    5 
    6 ENV PORT 8080
    7 ENV NODE_ENV=dev
    8 
    9 # the client version we will download from bumpx repo
   10 ENV CLIENT_FILENAME instantclient-basic-linux.x64-12.1.0.1.0.zip
   11 
   12 
   13 
   14 
   15 
   16 # Create and change to the app directory.
   17 WORKDIR /usr/src/appTemp
   18 
   19 # Copy application dependency manifests to the container image.
   20 # A wildcard is used to ensure both package.json AND package-lock.json are copied.
   21 # Copying this separately prevents re-running npm install on every code change.
   22 COPY ./docker/main.js ./docker/main.js
   23 COPY ./package*.json ./
   24 
   25 
   26 COPY ./docker/start.sh /usr/src/appEntry/start.sh
   27 
   28 RUN apk --update --no-cache add \
   29 	nodejs \
   30 	nodejs-npm \
   31 	tar
   32 
   33 
   34 # Install production dependencies.
   35 RUN npm install --cache=/usr/src/app/cache --production  && rm -rf /usr/src/app/cache && rm -rf /root/.npm
   36 
   37 RUN apk del nodejs-npm
   38 
   39 
   40 #RUN zip ./ –r ../appEntry/mydir.zip
   41 RUN tar -czf ../appEntry/app.tar.gz ./* ; rm -rf ./*
   42 
   43 #
   44 #RUN wget https://download.oracle.com/otn_software/linux/instantclient/193000/instantclient-basic-linux.x64-19.3.0.0.0dbru.zip && \
   45 #    unzip instantclient-basic-linux.x64-19.3.0.0.0dbru.zip && \
   46 #    cp -r instantclient_19_3/* /lib && \
   47 #    rm -rf instantclient-basic-linux.x64-19.3.0.0.0dbru.zip && \
   48 #    apk add libaio && \
   49 #    apk add --update libaio libnsl libc6-compat
   50 
   51 
   52 
   53 #
   54 ##    ln -s /lib/libnsl.so.2 /lib/libnsl.so.1 ;\
   55 #
   56 #RUN ln -s /lib64/* /lib ;\
   57 #    ln -s /lib/libnsl.so.2 /usr/lib/libnsl.so.1 ;\
   58 #    ln -s /lib/libc.so /lib/libresolv.so.2 ;\
   59 #    ln -s /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1
   60 ##    ln -s /lib/libclntsh.so.12.1 /lib/libclntsh.so ;
   61 
   62 
   63 #RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
   64 #apk add --update libaio libnsl && \
   65 #ln -s /usr/lib/libnsl.so.2 /lib/libnsl.so.1
   66 
   67 # Bug fix for segfault ( Convert PT_GNU_STACK program header into PT_PAX_FLAGS )
   68 #RUN apk --update --no-cache add paxctl \
   69 #	&& paxctl -cm $(which node)
   70 
   71 
   72 
   73 # work in this directory
   74 WORKDIR /opt/oracle/lib
   75 
   76 # take advantage of this repo to easily download the client (use it at your own risk)
   77 ADD https://github.com/bumpx/oracle-instantclient/raw/master/${CLIENT_FILENAME} .
   78 
   79 # we need libaio and libnsl, the latter is only available as package in the edge repository
   80 RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
   81     apk add --update libaio libnsl && \
   82     ln -s /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1
   83 
   84 # unzip the necessary libraries, create the base symlink and remove the zip file
   85 RUN LIBS="*/libociei.so */libons.so */libnnz12.so */libclntshcore.so.12.1 */libclntsh.so.12.1" && \
   86     unzip ${CLIENT_FILENAME} ${LIBS} && \
   87     for lib in ${LIBS}; do mv ${lib} /usr/lib; done && \
   88     ln -s /usr/lib/libclntsh.so.12.1 /usr/lib/libclntsh.so && \
   89     rm ${CLIENT_FILENAME}
   90 
   91 
   92 
   93 
   94 # Create and change to the app directory.
   95 WORKDIR /usr/src/app
   96 
   97 
   98 # Run the web service on container startup.
   99 #CMD [ "node", "docker/index.js" ]
  100 ENTRYPOINT ["/bin/sh", "/usr/src/appEntry/start.sh"]
  101 
  102 
  103 
  104 
  105 
  106 
  107 
  108 
  109