forked from Lintuasemasovellus/lintuasemasovellus
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
36 lines (21 loc) · 833 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
FROM node:12 AS builder
COPY /frontend /front
WORKDIR /front
RUN npm install
COPY . .
RUN npm run build
FROM python:3.6
RUN mkdir -p /opt/oracle
WORKDIR /opt/oracle
RUN apt-get update && apt-get install -y libaio1 wget unzip \
&& wget https://download.oracle.com/otn_software/linux/instantclient/19800/instantclient-basiclite-linux.x64-19.8.0.0.0dbru.zip \
&& unzip instantclient-basiclite-linux.x64-19.8.0.0.0dbru.zip \
&& rm -f instantclient-basiclite-linux.x64-19.8.0.0.0dbru.zip \
&& echo /opt/oracle/instantclient_19_8 > /etc/ld.so.conf.d/oracle-instantclient.conf \
&& ldconfig
COPY /lintuasema-backend /back
COPY --from=builder /front/build/ /back/build/
WORKDIR /back
RUN pip install -r requirements.txt
ENTRYPOINT ["flask"]
CMD ["run", "--host=0.0.0.0", "--port=3000"]