-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
36 lines (29 loc) · 1 KB
/
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
# For installing npm dependencies and building static css/js
FROM node:16-alpine3.14
COPY ./webpack.config.js ./tsconfig.json ./package.json yarn.lock /app/
COPY src /app/src
WORKDIR /app
# Install npm dependencies and build static css/js
ENV PRODUCTION=true
RUN yarn build && rm -rf node_modules
# Set up python
FROM python:3.7-alpine
COPY --from=0 /app /app
COPY requirements.txt /app
WORKDIR /app
RUN apk add --no-cache openssl
RUN apk --update add --virtual build-dependencies python3-dev build-base && \
pip install --upgrade pip && \
pip install --upgrade --no-cache-dir -r requirements.txt && \
apk del build-dependencies
ENV PYTHONPATH=/app
CMD ["python", "/app/src/server.py"]
ARG BUILD_DATE
ARG BRANCH
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.vcs-url="https://github.com/kbase/navigator.git"
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.schema-version="1.1.8"
LABEL us.kbase.vcs-branch=$BRANCH
LABEL maintainer="Dakota Blair [email protected]"