forked from amundsen-io/amundsenfrontendlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.Dockerfile
More file actions
28 lines (19 loc) · 711 Bytes
/
local.Dockerfile
File metadata and controls
28 lines (19 loc) · 711 Bytes
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
ARG METADATASERVICE_BASE
ARG SEARCHSERVICE_BASE
FROM node:8-slim as node-stage
WORKDIR /app/amundsen_application/static
COPY amundsen_application/static/package.json /app/amundsen_application/static/package.json
COPY amundsen_application/static/package-lock.json /app/amundsen_application/static/package-lock.json
RUN npm install
COPY amundsen_application/static/ /app/amundsen_application/static/
RUN npm rebuild node-sass
RUN npm run dev-build
COPY . /app
FROM python:3.7-slim
WORKDIR /app
COPY requirements3.txt /app/requirements3.txt
RUN pip3 install -r requirements3.txt
COPY --from=node-stage /app /app
RUN python3 setup.py install
ENTRYPOINT [ "python3" ]
CMD [ "amundsen_application/wsgi.py" ]