-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
56 lines (40 loc) · 815 Bytes
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Use alpine based node 11 as our base image
#
FROM node:18-alpine
#
# Setup default environment variables
#
ENV NODE_ENV=production
#
# Set arguments in GNUmakefile
#
ARG VERSION
#
# Labels
#
LABEL com.openlinksw.vendor = "OpenLink Software"
LABEL maintainer = "OpenLink Support <[email protected]>"
LABEL copyright = "Copyright (C) 2025 OpenLink Software"
LABEL version = "$VERSION"
LABEL description = "OpenLink Structured Data Editor v$VERSION (Docker Image)"
#
# Install the HTTP server
#
RUN npm install -g http-server
#
# The default directory for this application
#
WORKDIR /opt/rdf-editor
#
# Copy the application
#
COPY dist ./
#
# Expose the TCP port for the service
#
EXPOSE 8080
#
# Start the HTTP server
#
CMD ["http-server", ".", "--gzip", "--robots"]