[BE-setup] Remove IBM Db2

This commit is contained in:
Dosun Yun
2022-11-09 07:09:06 +09:00
parent 0ed2b8176f
commit ea8f1bc5f6
5 changed files with 268 additions and 104 deletions

View File

@@ -1,19 +1,3 @@
# STEP 1 NPM Build
FROM node:14 AS builder
# ORACLE 설치
RUN apt-get update && apt-get install -y libaio1 wget unzip
WORKDIR /opt/oracle
RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
unzip instantclient-basiclite-linuxx64.zip && rm -f instantclient-basiclite-linuxx64.zip && \
cd /opt/oracle/instantclient* && rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig
#NODE Build
WORKDIR /app
COPY . .
RUN yarn
RUN yarn build
# STEP 2 Running Env
FROM node:14-slim
# ORACLE 설치
RUN apt-get update && apt-get install -y libaio1 wget unzip
@@ -23,6 +7,10 @@ RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantcli
cd /opt/oracle/instantclient* && rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig
WORKDIR /app
ENV NODE_ENV production
COPY --from=builder /app ./
CMD ["yarn","start:prod"]
# ENV NODE_ENV production
# COPY --from=builder /app ./
COPY . .
RUN npm install
RUN npm run build
CMD ["npm","run","start:prod"]