-
Notifications
You must be signed in to change notification settings - Fork 253
/
Dockerfile
38 lines (34 loc) · 1.12 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
37
38
# Dockerfile should instantiate AWS Project with configurable plugins
FROM python:3.10
MAINTAINER Netflix Security
WORKDIR /apps/consoleme
# NODE_OPTIONS meeded to increase memory size of Node for the `yarn build` step. The Monaco Editor
# appears to be the culprit requiring this.
ENV NODE_OPTIONS="--max-old-space-size=20000"
ENV SETUPTOOLS_USE_DISTUTILS=stdlib
# Install OS dependencies
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash
RUN apt clean
RUN apt update
RUN apt install -y \
build-essential \
libxml2-dev \
libxmlsec1-dev \
libxmlsec1-openssl \
musl-dev \
libcurl4-nss-dev \
python3-dev \
nodejs
RUN npm install yarn -g
# Install watchdog. Used to automatically restart ConsoleMe in Docker, for development.
RUN pip install watchdog argh
# Run ConsoleMe tornado server using configuration
COPY . /apps/consoleme
RUN pip install -U setuptools pip
RUN pip install --no-cache-dir -r requirements.txt -r requirements-test.txt
RUN pip install -e .
# Install SPA frontend
RUN yarn --cwd ui
RUN yarn --cwd ui build:prod
CMD python scripts/retrieve_or_decode_configuration.py; consoleme
EXPOSE 8081