-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
27 lines (21 loc) · 1.39 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
FROM node:18
# Set Docker labels
LABEL org.opencontainers.image.title="ATT&CK Workbench REST API Service" \
org.opencontainers.image.description="This Docker image contains the REST API service of the ATT&CK Workbench, an application for exploring, creating, annotating, and sharing extensions of the MITRE ATT&CK® knowledge base. The service handles the storage, querying, and editing of ATT&CK objects. The application is built on Node.js and Express.js, and is served by the built-in web server provided by Express.js." \
org.opencontainers.image.source="https://github.com/center-for-threat-informed-defense/attack-workbench-rest-api" \
org.opencontainers.image.documentation="https://github.com/center-for-threat-informed-defense/attack-workbench-rest-api/README.md" \
org.opencontainers.image.url="https://ghcr.io/center-for-threat-informed-defense/attack-workbench-rest-api" \
org.opencontainers.image.vendor="The MITRE Corporation" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.authors="MITRE ATT&CK<[email protected]>" \
maintainer="MITRE ATT&CK<[email protected]>"
# Create app directory
WORKDIR /usr/src/app
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
# Install the app dependencies
RUN npm ci --only=production
# Copy app source
COPY . .
CMD [ "npm", "start" ]