-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
43 lines (32 loc) · 1.23 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
39
40
41
42
43
FROM nikolaik/python-nodejs:python3.10-nodejs20-slim
WORKDIR /opt/grepmarx
ENV FLASK_APP run.py
RUN apt-get update
# Supervisord install & configuration
RUN apt-get install -y supervisor
RUN mkdir -p /var/log/supervisor
COPY supervisord-docker.conf /etc/supervisor/conf.d/supervisord.conf
# Copy required files into the container
COPY entrypoint.sh run.py gunicorn-cfg.py requirements.txt requirements-pgsql.txt ./
COPY .env-docker .env
COPY nginx nginx
COPY app app
COPY migrations migrations
RUN mkdir data
# Install dependencies
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements-pgsql.txt
# Dependency scan (cdxgen / depscan) requirements
RUN apt-get install -y npm openjdk-17-jdk maven gradle golang composer
RUN npm install -g @cyclonedx/cdxgen@11.0.6
# Application Inspector dependencies (dotnet runtime)
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update
RUN apt-get install -y dotnet-runtime-8.0
# Downloaded packages cleaning
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
EXPOSE 5000
#EXPOSE 443
RUN chmod u+x ./entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]